forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adasockets-1.8.4.7.ebuild
59 lines (46 loc) · 1.33 KB
/
adasockets-1.8.4.7.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
WANT_AUTOCONF="2.1"
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/ada"
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 INSTALL NEWS README doc/adasockets.ps
doinfo doc/adasockets.info
insinto /usr/share/doc/${PF}
doins doc/adasockets.pdf
}