summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2012-05-25 07:43:23 +0000
committerMichael Weber <xmw@gentoo.org>2012-05-25 07:43:23 +0000
commitef50c2734c93760f825bedde2393a53231c1e5ee (patch)
treee9340502fe87262ac16fc6520a0386384e8771b1 /dev-db/datadraw/datadraw-3.1.1.ebuild
parentBump libusb slot dep. (diff)
downloadgentoo-2-ef50c2734c93760f825bedde2393a53231c1e5ee.tar.gz
gentoo-2-ef50c2734c93760f825bedde2393a53231c1e5ee.tar.bz2
gentoo-2-ef50c2734c93760f825bedde2393a53231c1e5ee.zip
Initial import, needed as dependency of sci-electronics/gnetman
(Portage version: 2.1.10.62/cvs/Linux x86_64)
Diffstat (limited to 'dev-db/datadraw/datadraw-3.1.1.ebuild')
-rw-r--r--dev-db/datadraw/datadraw-3.1.1.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-db/datadraw/datadraw-3.1.1.ebuild b/dev-db/datadraw/datadraw-3.1.1.ebuild
new file mode 100644
index 000000000000..db31f29f5257
--- /dev/null
+++ b/dev-db/datadraw/datadraw-3.1.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/datadraw/datadraw-3.1.1.ebuild,v 1.1 2012/05/25 07:43:23 xmw Exp $
+
+EAPI=4
+
+inherit multilib toolchain-funcs
+
+DESCRIPTION="feature rich database generator for high performance C applications"
+HOMEPAGE="http://datadraw.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}/${PN}${PV}/${PN}${PV}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples"
+
+DEPEND=""
+RDEPEND=""
+
+S=${WORKDIR}/${PN}${PV}
+
+src_prepare() {
+ tc-export CC
+ sed -e "/^CFLAGS=/s:-g -Wall:${CFLAGS}:" \
+ -i configure \
+ -i dataview/configure \
+ -i util/configure || die
+
+ sed -e '/^datadraw:/,+2s:\\$(CFLAGS):\\$(CFLAGS) \\$(LDFLAGS):' \
+ -i configure || die
+}
+
+src_install() {
+ dobin ${PN}
+
+ insinto /usr/$(get_libdir)
+ for lib in util/*.a ; do
+ newins ${lib} lib$(basename ${lib})
+ done
+ insinto /usr/include
+
+ doins util/*.h
+
+ dodoc README
+ if use doc ; then
+ dodoc manual.pdf
+ dohtml -r www/index.html www/images
+ fi
+ use examples && dodoc -r examples
+}