summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Shapovalov <george@gentoo.org>2006-06-09 15:40:18 +0000
committerGeorge Shapovalov <george@gentoo.org>2006-06-09 15:40:18 +0000
commit3317d9c018ac44ed74def4fde33202eb4c2eb54f (patch)
tree92815abf9f13a44db667c52c6e48a56a85499c13 /dev-ada/adasockets/adasockets-1.8.4.7.ebuild
parentAdded support for Makeself 1.6.0-nv which is used by NVIDIA in packaging the ... (diff)
downloadhistorical-3317d9c018ac44ed74def4fde33202eb4c2eb54f.tar.gz
historical-3317d9c018ac44ed74def4fde33202eb4c2eb54f.tar.bz2
historical-3317d9c018ac44ed74def4fde33202eb4c2eb54f.zip
new version, converted to use new style gnat compilers and gnat.eclass
Package-Manager: portage-2.1_rc4-r4
Diffstat (limited to 'dev-ada/adasockets/adasockets-1.8.4.7.ebuild')
-rw-r--r--dev-ada/adasockets/adasockets-1.8.4.7.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-ada/adasockets/adasockets-1.8.4.7.ebuild b/dev-ada/adasockets/adasockets-1.8.4.7.ebuild
new file mode 100644
index 000000000000..15847f5454c4
--- /dev/null
+++ b/dev-ada/adasockets/adasockets-1.8.4.7.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ada/adasockets/adasockets-1.8.4.7.ebuild,v 1.1 2006/06/09 15:40:18 george Exp $
+
+inherit gnat
+
+DESCRIPTION="An Interface to BSD sockets from Ada (TCP, UDP and multicast)."
+SRC_URI="http://www.rfc1149.net/download/adasockets/${P}.tar.gz"
+HOMEPAGE="http://www.rfc1149.net/devel/adasockets/"
+LICENSE="GMGPL"
+
+DEPEND="virtual/gnat"
+
+SLOT="0"
+IUSE=""
+KEYWORDS="~x86 ~amd64"
+
+
+# a location to temporarily keep common stuff installed by make install
+CommonInst="${WORKDIR}/common-install"
+
+lib_compile() {
+ econf || die "./configure failed"
+ emake || die
+}
+
+lib_install() {
+ mv ${SL}/src/sockets*.ali ${DL}
+ mv src/.libs/libadasockets.a ${DL}
+ mv src/.libs/libadasockets.so* ${DL}
+
+ # move common stuff out of $DL
+ if [[ ! -d "${CommonInst}" ]] ; then
+ # we need only one copy, its all identical
+ mkdir "${CommonInst}"
+ mv ${SL}/src/*.ad? "${CommonInst}"
+ fi
+}
+
+src_install() {
+ # sources
+ dodir "${AdalibSpecsDir}/${PN}"
+ insinto "${AdalibSpecsDir}/${PN}"
+ doins "${CommonInst}"/sockets*.ad?
+
+ # environment
+ echo "ADA_OBJECTS_PATH=%DL%" > ${LibEnv}
+ echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv}
+ echo "LDPATH=%DL%" >> ${LibEnv}
+
+ gnat_src_install
+
+ # and docs
+ dodoc AUTHORS COPYING INSTALL NEWS README doc/adasockets.ps
+ doinfo doc/adasockets.info
+ insinto /usr/share/doc/${PF}
+ doins doc/adasockets.pdf
+}