Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 243606
Collapse All | Expand All

(-)/usr/portage/app-misc/astrolog/astrolog-5.40.ebuild (-6 / +13 lines)
Lines 2-14 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-misc/astrolog/astrolog-5.40.ebuild,v 1.13 2010/01/01 17:56:52 ssuominen Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-misc/astrolog/astrolog-5.40.ebuild,v 1.13 2010/01/01 17:56:52 ssuominen Exp $
4
4
5
EAPI=2
6
7
inherit toolchain-funcs
8
5
DESCRIPTION="A many featured astrology chart calculation program"
9
DESCRIPTION="A many featured astrology chart calculation program"
6
HOMEPAGE="http://www.astrolog.org/astrolog.htm"
10
HOMEPAGE="http://www.astrolog.org/astrolog.htm"
7
SRC_URI="http://www.astrolog.org/ftp/ast54unx.shr"
11
SRC_URI="http://www.astrolog.org/ftp/ast54unx.shr"
8
12
9
LICENSE="astrolog"
13
LICENSE="astrolog"
10
SLOT="0"
14
SLOT="0"
11
KEYWORDS="x86 ppc64 ppc amd64"
15
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
12
IUSE="X"
16
IUSE="X"
13
17
14
DEPEND="X? ( x11-libs/libX11 )"
18
DEPEND="X? ( x11-libs/libX11 )"
Lines 16-26 Link Here
16
S=${WORKDIR}
20
S=${WORKDIR}
17
21
18
src_unpack() {
22
src_unpack() {
19
	bash "${DISTDIR}"/ast54unx.shr
23
	sh "${DISTDIR}"/ast54unx.shr
20
	cd "${S}"
24
}
21
25
22
	# remove stripping of created binary and substituce CFLAGS
26
src_prepare() {
23
	sed -i -e "s:strip:#strip:" -e "s:= -O:= ${CFLAGS}:" Makefile
27
	# remove stripping of created binary, dump hardcoded CFLAGS,
28
	# respect CC (bug #243606), and CFLAGS (bug #240057)
29
	sed -i -e 's:strip:#strip:' -e 's:^CFLAGS = :#CFLAGS = :' \
30
		-e 's:\tcc :\t$(CC) $(CFLAGS) :' Makefile
24
31
25
	# we use /usr/share/astrolog for config and (optional) ephemeris-data-files
32
	# we use /usr/share/astrolog for config and (optional) ephemeris-data-files
26
	sed -i -e "s:~/astrolog:/usr/share/astrolog:g" astrolog.h
33
	sed -i -e "s:~/astrolog:/usr/share/astrolog:g" astrolog.h
Lines 39-45 Link Here
39
}
46
}
40
47
41
src_compile() {
48
src_compile() {
42
	emake || die
49
	emake CC="$(tc-getCC)" || die
43
}
50
}
44
51
45
src_install() {
52
src_install() {

Return to bug 243606