Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/astrolog/
Date: Thu, 22 Feb 2018 22:47:04
Message-Id: 1519339569.383103d02e7e758584f5c76fce362027f579bf27.asturm@gentoo
1 commit: 383103d02e7e758584f5c76fce362027f579bf27
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 22 22:41:27 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 22 22:46:09 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=383103d0
7
8 app-misc/astrolog: Drop old
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 app-misc/astrolog/astrolog-5.40-r1.ebuild | 68 -------------------------------
13 1 file changed, 68 deletions(-)
14
15 diff --git a/app-misc/astrolog/astrolog-5.40-r1.ebuild b/app-misc/astrolog/astrolog-5.40-r1.ebuild
16 deleted file mode 100644
17 index 6fe1978c637..00000000000
18 --- a/app-misc/astrolog/astrolog-5.40-r1.ebuild
19 +++ /dev/null
20 @@ -1,68 +0,0 @@
21 -# Copyright 1999-2013 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=4
25 -
26 -inherit toolchain-funcs
27 -
28 -DESCRIPTION="A many featured astrology chart calculation program"
29 -HOMEPAGE="http://www.astrolog.org/astrolog.htm"
30 -SRC_URI="http://www.astrolog.org/ftp/ast54unx.shr"
31 -
32 -LICENSE="astrolog"
33 -SLOT="0"
34 -KEYWORDS="amd64 ~ppc ~ppc64 x86"
35 -IUSE="X"
36 -
37 -DEPEND="X? ( x11-libs/libX11 )"
38 -RDEPEND="${DEPEND}"
39 -
40 -S="${WORKDIR}"
41 -
42 -src_unpack() {
43 - sh "${DISTDIR}"/ast54unx.shr || die
44 -}
45 -
46 -src_prepare() {
47 - # remove stripping of created binary, dump hardcoded CFLAGS,
48 - # respect CC (bug #243606), and CFLAGS (bug #240057)
49 - sed \
50 - -e 's:strip:#strip:' -e 's:^CFLAGS = :#CFLAGS = :' \
51 - -e 's:\tcc :\t$(CC) $(CFLAGS) $(LDFLAGS) :' \
52 - -i Makefile || die
53 -
54 - # we use /usr/share/astrolog for config and (optional) ephemeris-data-files
55 - sed -i -e "s:~/astrolog:/usr/share/astrolog:g" astrolog.h || die
56 -
57 - # if we use X, we need to add -L/usr/X11R6/lib to compile succesful
58 - #use X && sed -i -e "s:-lm -lX11:-lm -lX11 -L/usr/X11R6/lib:g" Makefile
59 -
60 - # if we do NOT use X, we disable it by removing the -lX11 from the Makefile
61 - # and remove the "#define X11" and "#define MOUSE" from astrolog.h
62 - use X || ( sed -i -e "s:-lm -lX11:-lm:g" Makefile
63 - sed -i -e "s:#define X11:/*#define X11:g" astrolog.h
64 - sed -i -e "s:#define MOUSE:/*#define MOUSE:g" astrolog.h )
65 -
66 - # any user may have an own astrolog configfile
67 - #sed -i -e "s:astrolog.dat:astrolog.dat:g" astrolog.h
68 -}
69 -
70 -src_compile() {
71 - emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
72 -}
73 -
74 -src_install() {
75 - dobin astrolog
76 - dodoc Helpfile.540 README.1ST README.540 Update.540
77 - insinto /usr/share/astrolog
78 - doins astrolog.dat
79 -}
80 -
81 -pkg_postinst() {
82 - ewarn "There is a sample config file /usr/share/astrolog/astrolog.dat"
83 - ewarn "astrolog looks in current dir for a file astrolog.dat before"
84 - ewarn "using the file in /usr/share/astrolog"
85 - ewarn "If you want extended accuracy of astrolog's calculations you"
86 - ewarn "can emerge the optional package \"astrolog-ephemeris\" which"
87 - ewarn "needs ~4.7 MB additional diskspace for the ephemeris-files"
88 -}