From: Vadim Misbakh-Soloviov Date: Fri, 25 Oct 2019 17:39:50 +0000 (+0700) Subject: media-libs/vitamtp: new package X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fd73ce01ec08d96827720b9b12a35ec986ab5783;p=gentoo.git media-libs/vitamtp: new package Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: Vadim Misbakh-Soloviov --- diff --git a/media-libs/vitamtp/Manifest b/media-libs/vitamtp/Manifest new file mode 100644 index 000000000000..52fff3cb6f53 --- /dev/null +++ b/media-libs/vitamtp/Manifest @@ -0,0 +1 @@ +DIST vitamtp-2.5.9_pre20160829.tar.gz 201289 BLAKE2B 1ef7d55afd32ac27cc7f4ce233644ab54d760c906e4073a77b3e0b0d2d5c90289d5bba22d54448effe675e28275068f9c20cd15c7b6223e6d6f42950dd5c6da8 SHA512 fae1c509d30610191e20ed12426118599feb95b7a3aa0e31b43f6c0ac72a3dc9d72407ccb4f14818574c313548f521c35ad0a3264b861b745ec991b5cfda4c97 diff --git a/media-libs/vitamtp/metadata.xml b/media-libs/vitamtp/metadata.xml new file mode 100644 index 000000000000..d0e6873b4866 --- /dev/null +++ b/media-libs/vitamtp/metadata.xml @@ -0,0 +1,14 @@ + + + + + mva@gentoo.org + Vadim Misbakh-Soloviov + + + Library to interact with PS Vita's USB MTP protocol. + + + codestation/vitamtp + + diff --git a/media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild b/media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild new file mode 100644 index 000000000000..daed23602791 --- /dev/null +++ b/media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools vcs-snapshot + +GIT_COMMIT="7ab537a4f45e34984cbeb9cf1b1af543a75a3dc0" + +DESCRIPTION="Library to interact with PS Vita's USB MTP protocol" +HOMEPAGE="https://github.com/codestation/vitamtp" +SRC_URI="https://github.com/codestation/${PN}/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +DEPEND=" + virtual/libusb:1 + dev-libs/libxml2 +" +RDEPEND="${DEPEND}" + +src_prepare() { + rm ChangeLog || die "Failed to rm changelog" # Triggers QA warn (symlink to nowhere) + + sed -r \ + -e 's@vitamtp@usb@' \ + -i debian/libvitamtp5.udev + # ^ ease console management for users + # (we don't really need extra group for this) + + default + eautoreconf +} + +src_install() { + default + find "${D}" -name '*.la' -type f -delete || die + insinto /lib/udev/rules.d + newins debian/libvitamtp5.udev 10-vitamtp.rules +} diff --git a/media-libs/vitamtp/vitamtp-9999.ebuild b/media-libs/vitamtp/vitamtp-9999.ebuild new file mode 100644 index 000000000000..03249b880bcf --- /dev/null +++ b/media-libs/vitamtp/vitamtp-9999.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools git-r3 + +DESCRIPTION="Library to interact with PS Vita's USB MTP protocol" +HOMEPAGE="https://github.com/codestation/vitamtp" +LICENSE="GPL-3" +SLOT="0" +EGIT_REPO_URI="https://github.com/codestation/vitamtp" + +DEPEND=" + virtual/libusb:1 + dev-libs/libxml2:2 +" +RDEPEND="${DEPEND}" + +src_prepare() { + rm ChangeLog || die "Failed to rm changelog" # Triggers QA warn (symlink to nowhere) + + sed -r \ + -e 's@vitamtp@usb@' \ + -i debian/libvitamtp5.udev + # ^ ease console management for users + # (we don't really need extra group for this) + + default + eautoreconf +} + +src_install() { + default + find "${D}" -name '*.la' -type f -delete || die + insinto /lib/udev/rules.d + newins debian/libvitamtp5.udev 10-vitamtp.rules +}