summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/idutils/idutils-4.5.ebuild')
-rw-r--r--dev-util/idutils/idutils-4.5.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-util/idutils/idutils-4.5.ebuild b/dev-util/idutils/idutils-4.5.ebuild
new file mode 100644
index 000000000000..29881768185b
--- /dev/null
+++ b/dev-util/idutils/idutils-4.5.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils elisp-common
+
+DESCRIPTION="Fast, high-capacity, identifier database tool"
+HOMEPAGE="http://www.gnu.org/software/idutils/"
+#DEB_PN="id-utils" # old upstream name for it
+#DEB_P="${DEB_PN}_${PV}"
+#DEB_PR="1"
+SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
+#mirror://debian/pool/main/${PN:0:1}/${DEB_PN}/${DEB_P}-${DEB_PR}.diff.gz
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs nls"
+
+RDEPEND="emacs? ( virtual/emacs )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ if [ -n "${DEB_PR}" ]; then
+ cd "${S}"
+ epatch "${DISTDIR}"/${DEB_P}-${DEB_PR}.diff.gz
+ epatch "${S}"/debian/patches/*.dpatch
+ fi
+}
+
+src_compile() {
+ use emacs || export EMACS=no
+ econf \
+ $(use_enable nls) \
+ "$(use_with emacs lispdir "${SITELISP}/${PN}")"
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc NEWS README* ChangeLog AUTHORS THANKS TODO
+}