From 074bcd3fe7702e6ae1b62c38fdb62cd5d9acade7 Mon Sep 17 00:00:00 2001 From: Miroslav Šulc Date: Fri, 1 Jul 2022 12:56:49 +0200 Subject: media-libs/libmtp: fixed doc installation path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/854810 Signed-off-by: Miroslav Šulc --- .../libmtp/files/libmtp-1.1.19-fix-docdir.patch | 13 ++++ media-libs/libmtp/libmtp-1.1.19-r1.ebuild | 80 --------------------- media-libs/libmtp/libmtp-1.1.19-r2.ebuild | 84 ++++++++++++++++++++++ 3 files changed, 97 insertions(+), 80 deletions(-) create mode 100644 media-libs/libmtp/files/libmtp-1.1.19-fix-docdir.patch delete mode 100644 media-libs/libmtp/libmtp-1.1.19-r1.ebuild create mode 100644 media-libs/libmtp/libmtp-1.1.19-r2.ebuild (limited to 'media-libs') diff --git a/media-libs/libmtp/files/libmtp-1.1.19-fix-docdir.patch b/media-libs/libmtp/files/libmtp-1.1.19-fix-docdir.patch new file mode 100644 index 000000000000..25450079d203 --- /dev/null +++ b/media-libs/libmtp/files/libmtp-1.1.19-fix-docdir.patch @@ -0,0 +1,13 @@ +diff --git a/doc/Makefile.in b/doc/Makefile.in +index fede3e0..d801a47 100644 +--- a/doc/Makefile.in ++++ b/doc/Makefile.in +@@ -256,7 +256,7 @@ top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + EXTRA_DIST = Doxyfile.in examples.h mainpage.h +-@HAVE_DOXYGEN_TRUE@pkgdocdir = $(datadir)/doc/$(PACKAGE)-$(VERSION) ++@HAVE_DOXYGEN_TRUE@pkgdocdir = $(docdir) + @HAVE_DOXYGEN_TRUE@htmldocdir = $(pkgdocdir)/html + all: all-am + diff --git a/media-libs/libmtp/libmtp-1.1.19-r1.ebuild b/media-libs/libmtp/libmtp-1.1.19-r1.ebuild deleted file mode 100644 index bf1575d7a256..000000000000 --- a/media-libs/libmtp/libmtp-1.1.19-r1.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit udev - -if [[ ${PV} == 9999* ]]; then - EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/code" - inherit autotools git-r3 -else - SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~x86" -fi - -DESCRIPTION="Implementation of Microsoft's Media Transfer Protocol (MTP)" -HOMEPAGE="http://libmtp.sourceforge.net/" - -LICENSE="LGPL-2.1" # LGPL-2+ and LGPL-2.1+ ? -SLOT="0/9" # Based on SONAME of libmtp shared library -IUSE="+crypt doc examples static-libs" - -RDEPEND=" - acct-group/plugdev - virtual/libiconv - virtual/libusb:1 - crypt? ( dev-libs/libgcrypt:0= )" -DEPEND="${RDEPEND}" -BDEPEND=" - sys-devel/gettext - virtual/pkgconfig - doc? ( app-doc/doxygen )" - -DOCS=( AUTHORS README TODO ) - -src_prepare() { - default - - # ChangeLog says "RETIRING THIS FILE ..pause.. GIT" (Last entry from start of 2011) - rm ChangeLog || die - - if [[ ${PV} == 9999* ]]; then - if [[ -e /usr/share/gettext/config.rpath ]]; then - cp /usr/share/gettext/config.rpath . || die - else - touch config.rpath || die # This is from upstream autogen.sh - fi - eautoreconf - fi -} - -src_configure() { - local myeconfargs=( - $(use_enable crypt mtpz) - $(use_enable doc doxygen) - $(use_enable static-libs static) - --with-udev="$(get_udevdir)" - --with-udev-group=plugdev - --with-udev-mode=0660 - ) - econf "${myeconfargs[@]}" -} - -src_install() { - default - find "${ED}" -name "*.la" -delete || die - - if use examples; then - docinto examples - dodoc examples/*.{c,h,sh} - fi -} - -pkg_postinst() { - udev_reload -} - -pkg_postrm() { - udev_reload -} diff --git a/media-libs/libmtp/libmtp-1.1.19-r2.ebuild b/media-libs/libmtp/libmtp-1.1.19-r2.ebuild new file mode 100644 index 000000000000..fd347a6888d2 --- /dev/null +++ b/media-libs/libmtp/libmtp-1.1.19-r2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit udev + +if [[ ${PV} == 9999* ]]; then + EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/code" + inherit autotools git-r3 +else + SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~x86" +fi + +DESCRIPTION="Implementation of Microsoft's Media Transfer Protocol (MTP)" +HOMEPAGE="http://libmtp.sourceforge.net/" + +LICENSE="LGPL-2.1" # LGPL-2+ and LGPL-2.1+ ? +SLOT="0/9" # Based on SONAME of libmtp shared library +IUSE="+crypt doc examples static-libs" + +RDEPEND=" + acct-group/plugdev + virtual/libiconv + virtual/libusb:1 + crypt? ( dev-libs/libgcrypt:0= )" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/gettext + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +DOCS=( AUTHORS README TODO ) + +PATCHES=( + "${FILESDIR}/${P}-fix-docdir.patch" +) + +src_prepare() { + default + + # ChangeLog says "RETIRING THIS FILE ..pause.. GIT" (Last entry from start of 2011) + rm ChangeLog || die + + if [[ ${PV} == 9999* ]]; then + if [[ -e /usr/share/gettext/config.rpath ]]; then + cp /usr/share/gettext/config.rpath . || die + else + touch config.rpath || die # This is from upstream autogen.sh + fi + eautoreconf + fi +} + +src_configure() { + local myeconfargs=( + $(use_enable crypt mtpz) + $(use_enable doc doxygen) + $(use_enable static-libs static) + --with-udev="$(get_udevdir)" + --with-udev-group=plugdev + --with-udev-mode=0660 + ) + econf "${myeconfargs[@]}" +} + +src_install() { + default + find "${ED}" -name "*.la" -delete || die + + if use examples; then + docinto examples + dodoc examples/*.{c,h,sh} + fi +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +} -- cgit v1.2.3-65-gdbad