diff options
author | Don Seiler <rizzo@gentoo.org> | 2004-02-13 02:50:48 +0000 |
---|---|---|
committer | Don Seiler <rizzo@gentoo.org> | 2004-02-13 02:50:48 +0000 |
commit | 3c0645efac4479204be62a664cfb4f834e87e988 (patch) | |
tree | 17c4c24cf6f713bbb169be915e393b0cd7da4835 /dev-libs/libsqlora8 | |
parent | Added pthreads and orathreads USE flags for dev-libs/libsqlora8 (diff) | |
download | gentoo-2-3c0645efac4479204be62a664cfb4f834e87e988.tar.gz gentoo-2-3c0645efac4479204be62a664cfb4f834e87e988.tar.bz2 gentoo-2-3c0645efac4479204be62a664cfb4f834e87e988.zip |
Initial import, hard-masked
Diffstat (limited to 'dev-libs/libsqlora8')
-rw-r--r-- | dev-libs/libsqlora8/ChangeLog | 10 | ||||
-rw-r--r-- | dev-libs/libsqlora8/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libsqlora8/files/digest-libsqlora8-2.2.11 | 1 | ||||
-rw-r--r-- | dev-libs/libsqlora8/libsqlora8-2.2.11.ebuild | 63 | ||||
-rw-r--r-- | dev-libs/libsqlora8/metadata.xml | 11 |
5 files changed, 87 insertions, 0 deletions
diff --git a/dev-libs/libsqlora8/ChangeLog b/dev-libs/libsqlora8/ChangeLog new file mode 100644 index 000000000000..836841a95d5b --- /dev/null +++ b/dev-libs/libsqlora8/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-libs/libsqlora8 +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libsqlora8/ChangeLog,v 1.1 2004/02/13 02:50:48 rizzo Exp $ + +*libsqlora8-2.2.11 (12 Feb 2004) + + 12 Feb 2004; Don Seiler <rizzo@gentoo.org>; libsqlora8-2.2.11.ebuild, + metadata.xml: + Initial import. Thanks to Josh Glover + diff --git a/dev-libs/libsqlora8/Manifest b/dev-libs/libsqlora8/Manifest new file mode 100644 index 000000000000..a1588378e7d7 --- /dev/null +++ b/dev-libs/libsqlora8/Manifest @@ -0,0 +1,2 @@ +MD5 7c425b0711df4577a746207b763e275f libsqlora8-2.2.11.ebuild 1600 +MD5 8a06edc637420287b983ec91532dbadf files/digest-libsqlora8-2.2.11 69 diff --git a/dev-libs/libsqlora8/files/digest-libsqlora8-2.2.11 b/dev-libs/libsqlora8/files/digest-libsqlora8-2.2.11 new file mode 100644 index 000000000000..8735f4da90f6 --- /dev/null +++ b/dev-libs/libsqlora8/files/digest-libsqlora8-2.2.11 @@ -0,0 +1 @@ +MD5 683f97278a64f4187e0302388102c06f libsqlora8-2.2.11.tar.gz 395847 diff --git a/dev-libs/libsqlora8/libsqlora8-2.2.11.ebuild b/dev-libs/libsqlora8/libsqlora8-2.2.11.ebuild new file mode 100644 index 000000000000..dd5b606691f8 --- /dev/null +++ b/dev-libs/libsqlora8/libsqlora8-2.2.11.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libsqlora8/libsqlora8-2.2.11.ebuild,v 1.1 2004/02/13 02:50:48 rizzo Exp $ + +IUSE="pthreads orathreads" + +DESCRIPTION="libsqlora8 is a simple C-library to access Oracle databases via the OCI interface" +SRC_URI="http://www.poitschke.de/libsqlora8/${P}.tar.gz" +HOMEPAGE="http://www.poitschke.de/libsqlora8/index_noframe.html" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="" + +pkg_setup() { + if [ `use orathreads` -a `use pthreads` ]; then + eerror + eerror 'Enable the "pthreads" USE flag for POSIX threads,' + eerror '*or* the "orathreads" USE flag for Oracle threads' + eerror + die 'Both "pthreads" and "orathreads" USE flags set, see above' + fi + + # Make sure ORACLE_HOME is set + if [ -z $ORACLE_HOME ]; then + eerror + eerror 'libsqlora8 requires that the ORACLE_HOME environment variable be set.' + eerror 'Try: "export ORACLE_HOME=/usr/local/oracle" if you do not know what to do.' + eerror + die 'ORACLE_HOME not set, see above' + fi + + # Add $ORACLE_HOME/lib to LD_LIBRARY_PATH + if [ -z $LD_LIBRARY_PATH ]; then + LD_LIBRARY_PATH=$ORACLE_HOME/lib + else + LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH + fi + export LD_LIBRARY_PATH +} + +src_compile() { + local myconf; + + use pthreads && myconf="--with-threads=posix" + use orathreads && myconf="--with-threads=oracle" + + # Build + econf $myconf || die "configure failed" + emake + #make "DESTDIR=${D}" "docdir=${D}/usr/share/doc/${P}" || die "make failed" +} + +src_install () { + einstall + dodoc COPYING ChangeLog INSTALL NEWS NEWS-2.2 + #mv ${D}/usr/share/doc/packages/${PN} ${D}/usr/share/doc/${P} + + # TODO + # Copy contents of doc and examples directory to doc +} diff --git a/dev-libs/libsqlora8/metadata.xml b/dev-libs/libsqlora8/metadata.xml new file mode 100644 index 000000000000..2388487e1d87 --- /dev/null +++ b/dev-libs/libsqlora8/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer> + <email>rizzo@gentoo.org</email> +<!-- <name>Full name</name> --> +<!-- <description>Description of the maintainership</description> --> +</maintainer> +<!-- <longdescription>Long description of the package</longdescription> --> +</pkgmetadata> |