blob: e9dc9aed2f24e50f902815444cecf9c382e7d5a9 (
plain)
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ada/tash/tash-8.4.1a.ebuild,v 1.8 2012/05/23 08:17:28 jlec Exp $
inherit gnat toolchain-funcs
DESCRIPTION="tcl Ada bindings"
HOMEPAGE="http://tcladashell.sourceforge.net/index.htm"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="virtual/ada
=dev-lang/tcl-8.4*
=dev-lang/tk-8.4*"
RDEPEND=${DEPEND}
lib_compile() {
CC=${tc-getCC}
${CC} -c ${CFLAGS} -o obj/tclmacro.o src/tclmacro.c && \
${CC} -c ${CFLAGS} -o obj/tkmacro.o src/tkmacro.c && \
gnatmake -Pbuild_stat || die "building static lib failed"
${CC} -c ${CFLAGS} -fPIC -o obj_dyn/tclmacro.o src/tclmacro.c && \
${CC} -c ${CFLAGS} -fPIC -o obj_dyn/tkmacro.o src/tkmacro.c && \
gnatmake -Pbuild_dyn || die "building static lib failed"
}
lib_install() {
mv "${SL}"/lib/*.{ali,a,so*} "${DL}"
chmod a-w "${DL}"/*.ali
# tash build creates an absolute symlink. The easiest way to just
# relink it here
pushd "${DL}"
rm libtash.so
ln -s libtash.so.* libtash.so
popd
}
src_install() {
dodir "${AdalibSpecsDir}/${PN}"
insinto "${AdalibSpecsDir}/${PN}"
doins src/*.ad?
#set up environment
echo "ADA_OBJECTS_PATH=%DL%" >> ${LibEnv}
echo "ADA_INCLUDE_PATH=${AdalibSpecsDir}/${PN}" >> ${LibEnv}
gnat_src_install
dohtml -r index.html web/ docs/*.htm images/
insinto /usr/share/doc/${PF}
doins -r apps/ demos/ tests/ docs/*.pdf
}
|