libptp2 was released in early 2016. Current version in tree is from 2007.
And the current version is broken and does not work at all.
The problem is that the current version assumes the layout of usb_dev_handle structure but since older libusb API is covered by libusb-compat library the layout of the structure is completely different and the libptp2 passes random garbage instead of fd to the ioctl() calls. In short it fails to connect to the device.
The version from 2016 has been fixed and no longer assumes the layout of the structure and works fine.
So, to sum up, current version in tree is from 2007, it is broken and there is no maintainer. I checked, and there are no revdeps in tree. Maybe, unless someone wants to finally take care of the package, this should be last-rited.
The bug has been closed via the following commit(s):
Author: Michał Górny <firstname.lastname@example.org>
AuthorDate: 2018-12-11 13:54:25 +0000
Commit: Michał Górny <email@example.com>
CommitDate: 2018-12-11 13:54:25 +0000
media-libs/libptp2: Remove last-rited pkg
Signed-off-by: Michał Górny <firstname.lastname@example.org>
media-libs/libptp2/Manifest | 1 -
.../libptp2/files/libptp2-1.1.10-configure.patch | 46 ----------------------
.../libptp2/files/libptp2-1.1.10-makefile.patch | 11 ------
media-libs/libptp2/libptp2-1.1.10.ebuild | 31 ---------------
media-libs/libptp2/metadata.xml | 8 ----
profiles/package.mask | 5 ---
6 files changed, 102 deletions(-)