Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/astrolog: metadata.xml ChangeLog astrolog-5.40-r1.ebuild
Date: Wed, 04 Apr 2012 07:37:21
Message-Id: 20120404073700.E66C72004B@flycatcher.gentoo.org
1 jlec 12/04/04 07:37:00
2
3 Modified: metadata.xml ChangeLog
4 Added: astrolog-5.40-r1.ebuild
5 Log:
6 app-misc/astrolog: Move to EAPI=4, respect LDFLAGS, #240057
7
8 (Portage version: 2.2.0_alpha99/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.3 app-misc/astrolog/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/astrolog/metadata.xml?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/astrolog/metadata.xml?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/astrolog/metadata.xml?r1=1.2&r2=1.3
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-misc/astrolog/metadata.xml,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- metadata.xml 17 Dec 2003 20:01:31 -0000 1.2
24 +++ metadata.xml 4 Apr 2012 07:37:00 -0000 1.3
25 @@ -1,14 +1,12 @@
26 <?xml version="1.0" encoding="UTF-8"?>
27 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
28 <pkgmetadata>
29 -<herd>sci</herd>
30 -
31 -<maintainer>
32 - <email>george@g.o</email>
33 - <name>George Shapovalov</name>
34 - <description>I'll be taking care of it. But since we need to have a herd in metadata
35 + <herd>sci</herd>
36 + <maintainer>
37 + <email>george@g.o</email>
38 + <name>George Shapovalov</name>
39 + <description>I'll be taking care of it. But since we need to have a herd in metadata
40 I've put sci there, as it seems the most related one.
41 </description>
42 -</maintainer>
43 -
44 + </maintainer>
45 </pkgmetadata>
46
47
48
49 1.13 app-misc/astrolog/ChangeLog
50
51 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/astrolog/ChangeLog?rev=1.13&view=markup
52 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/astrolog/ChangeLog?rev=1.13&content-type=text/plain
53 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/astrolog/ChangeLog?r1=1.12&r2=1.13
54
55 Index: ChangeLog
56 ===================================================================
57 RCS file: /var/cvsroot/gentoo-x86/app-misc/astrolog/ChangeLog,v
58 retrieving revision 1.12
59 retrieving revision 1.13
60 diff -u -r1.12 -r1.13
61 --- ChangeLog 11 Jan 2010 16:41:19 -0000 1.12
62 +++ ChangeLog 4 Apr 2012 07:37:00 -0000 1.13
63 @@ -1,6 +1,12 @@
64 # ChangeLog for app-misc/astrolog
65 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
66 -# $Header: /var/cvsroot/gentoo-x86/app-misc/astrolog/ChangeLog,v 1.12 2010/01/11 16:41:19 bicatali Exp $
67 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
68 +# $Header: /var/cvsroot/gentoo-x86/app-misc/astrolog/ChangeLog,v 1.13 2012/04/04 07:37:00 jlec Exp $
69 +
70 +*astrolog-5.40-r1 (04 Apr 2012)
71 +
72 + 04 Apr 2012; Justin Lecher <jlec@g.o> +astrolog-5.40-r1.ebuild,
73 + metadata.xml:
74 + Move to EAPI=4, respect LDFLAGS, #240057
75
76 11 Jan 2010; Sébastien Fabbro <bicatali@g.o> astrolog-5.40.ebuild:
77 Fixed propagation of compiler, bug #243606, thanks Arttu Valo
78
79
80
81 1.1 app-misc/astrolog/astrolog-5.40-r1.ebuild
82
83 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/astrolog/astrolog-5.40-r1.ebuild?rev=1.1&view=markup
84 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/astrolog/astrolog-5.40-r1.ebuild?rev=1.1&content-type=text/plain
85
86 Index: astrolog-5.40-r1.ebuild
87 ===================================================================
88 # Copyright 1999-2012 Gentoo Foundation
89 # Distributed under the terms of the GNU General Public License v2
90 # $Header: /var/cvsroot/gentoo-x86/app-misc/astrolog/astrolog-5.40-r1.ebuild,v 1.1 2012/04/04 07:37:00 jlec Exp $
91
92 EAPI=4
93
94 inherit toolchain-funcs
95
96 DESCRIPTION="A many featured astrology chart calculation program"
97 HOMEPAGE="http://www.astrolog.org/astrolog.htm"
98 SRC_URI="http://www.astrolog.org/ftp/ast54unx.shr"
99
100 LICENSE="astrolog"
101 SLOT="0"
102 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
103 IUSE="X"
104
105 DEPEND="X? ( x11-libs/libX11 )"
106 RDEPEND="${DEPEND}"
107
108 S="${WORKDIR}"
109
110 src_unpack() {
111 sh "${DISTDIR}"/ast54unx.shr || die
112 }
113
114 src_prepare() {
115 # remove stripping of created binary, dump hardcoded CFLAGS,
116 # respect CC (bug #243606), and CFLAGS (bug #240057)
117 sed \
118 -e 's:strip:#strip:' -e 's:^CFLAGS = :#CFLAGS = :' \
119 -e 's:\tcc :\t$(CC) $(CFLAGS) $(LDFLAGS) :' \
120 -i Makefile || die
121
122 # we use /usr/share/astrolog for config and (optional) ephemeris-data-files
123 sed -i -e "s:~/astrolog:/usr/share/astrolog:g" astrolog.h || die
124
125 # if we use X, we need to add -L/usr/X11R6/lib to compile succesful
126 #use X && sed -i -e "s:-lm -lX11:-lm -lX11 -L/usr/X11R6/lib:g" Makefile
127
128 # if we do NOT use X, we disable it by removing the -lX11 from the Makefile
129 # and remove the "#define X11" and "#define MOUSE" from astrolog.h
130 use X || ( sed -i -e "s:-lm -lX11:-lm:g" Makefile
131 sed -i -e "s:#define X11:/*#define X11:g" astrolog.h
132 sed -i -e "s:#define MOUSE:/*#define MOUSE:g" astrolog.h )
133
134 # any user may have an own astrolog configfile
135 #sed -i -e "s:astrolog.dat:astrolog.dat:g" astrolog.h
136 }
137
138 src_compile() {
139 emake CC="$(tc-getCC)"
140 }
141
142 src_install() {
143 dobin astrolog
144 dodoc Helpfile.540 README.1ST README.540 Update.540
145 insinto /usr/share/astrolog
146 doins astrolog.dat
147 }
148
149 pkg_postinst() {
150 ewarn "There is a sample config file /usr/share/astrolog/astrolog.dat"
151 ewarn "astrolog looks in current dir for a file astrolog.dat before"
152 ewarn "using the file in /usr/share/astrolog"
153 ewarn "If you want extended accuracy of astrolog's calculations you"
154 ewarn "can emerge the optional package \"astrolog-ephemeris\" which"
155 ewarn "needs ~4.7 MB additional diskspace for the ephemeris-files"
156 }