diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-libs/libiptcdata/libiptcdata-1.0.4-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-libs/libiptcdata/libiptcdata-1.0.4-r1.ebuild')
-rw-r--r-- | media-libs/libiptcdata/libiptcdata-1.0.4-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/media-libs/libiptcdata/libiptcdata-1.0.4-r1.ebuild b/media-libs/libiptcdata/libiptcdata-1.0.4-r1.ebuild new file mode 100644 index 000000000000..5169a9e48f51 --- /dev/null +++ b/media-libs/libiptcdata/libiptcdata-1.0.4-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 + +DESCRIPTION="library for manipulating the International Press Telecommunications +Council (IPTC) metadata" +HOMEPAGE="http://libiptcdata.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm ~arm64 ia64 ppc ppc64 sparc x86" +IUSE="doc examples nls python" + +RDEPEND="python? ( ${PYTHON_DEPS} ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( >=sys-devel/gettext-0.13.1 ) + doc? ( >=dev-util/gtk-doc-1 )" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure () { + econf \ + $(use_enable nls) \ + $(use_enable python) \ + $(use_enable doc gtk-doc) +} + +src_install () { + emake DESTDIR="${D}" install || die "emake install failed." + dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed." + + if use examples; then + insinto /usr/share/doc/${PF}/python + doins python/README || die "doins failed" + doins -r python/examples || die "doins 2 failed" + fi + + find "${D}" -name '*.la' -delete || die "failed to remove *.la files" +} |