summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kryczek <mkay@gentoo.org>2005-09-26 14:32:29 +0000
committerMarcin Kryczek <mkay@gentoo.org>2005-09-26 14:32:29 +0000
commit8649111a0347555d604b1ecc0042f67970663d79 (patch)
tree112dfd7e1545f9b0cffef56a69dc92dab5708494 /net-p2p/ed2k_hash/ed2k_hash-0.4.0-r1.ebuild
parentAdding net-p2p/ed2k_hash:fltk (diff)
downloadhistorical-8649111a0347555d604b1ecc0042f67970663d79.tar.gz
historical-8649111a0347555d604b1ecc0042f67970663d79.tar.bz2
historical-8649111a0347555d604b1ecc0042f67970663d79.zip
Adding optional support for fltk GUI
Package-Manager: portage-2.0.52-r1
Diffstat (limited to 'net-p2p/ed2k_hash/ed2k_hash-0.4.0-r1.ebuild')
-rw-r--r--net-p2p/ed2k_hash/ed2k_hash-0.4.0-r1.ebuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/net-p2p/ed2k_hash/ed2k_hash-0.4.0-r1.ebuild b/net-p2p/ed2k_hash/ed2k_hash-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..8f4049d8c256
--- /dev/null
+++ b/net-p2p/ed2k_hash/ed2k_hash-0.4.0-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/ed2k_hash/ed2k_hash-0.4.0-r1.ebuild,v 1.1 2005/09/26 14:32:29 mkay Exp $
+
+inherit flag-o-matic eutils
+
+DESCRIPTION="Tool for generating eDonkey2000 links"
+HOMEPAGE="http://ed2k-tools.sourceforge.net/${PN}.shtml"
+RESTRICT="nomirror"
+SRC_URI="mirror://sourceforge/ed2k-tools/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="fltk"
+DEPEND="fltk? ( x11-libs/fltk )"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+ epatch ${FILESDIR}/ed2k_64bit.patch
+}
+
+src_compile() {
+ if use fltk; then
+ append-ldflags "$(fltk-config --ldflags)"
+ export CPPFLAGS="$(fltk-config --cxxflags)"
+ else
+ export ac_cv_lib_fltk_main='no'
+ fi
+
+ econf --disable-dependency-tracking
+ emake
+}
+
+src_install() {
+ make install DESTDIR=${D} mydocdir=${D}/usr/share/doc/${PF}/html || die
+
+ dodoc AUTHORS COPYING INSTALL README TODO
+}