public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Austin English" <wizardedit@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/astrolog/
Date: Thu,  7 Jul 2016 19:48:14 +0000 (UTC)	[thread overview]
Message-ID: <1467920820.e707745e42172a9d5741eb10c52fbe069e5e6ac1.wizardedit@gentoo> (raw)

commit:     e707745e42172a9d5741eb10c52fbe069e5e6ac1
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  7 19:02:23 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Thu Jul  7 19:47:00 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e707745e

app-misc/astrolog: bump to EAPI 6, add maintainer-needed

Package-Manager: portage-2.2.28

 app-misc/astrolog/astrolog-5.40-r3.ebuild | 71 +++++++++++++++++++++++++++++++
 app-misc/astrolog/metadata.xml            |  1 +
 2 files changed, 72 insertions(+)

diff --git a/app-misc/astrolog/astrolog-5.40-r3.ebuild b/app-misc/astrolog/astrolog-5.40-r3.ebuild
new file mode 100644
index 0000000..8de1e93
--- /dev/null
+++ b/app-misc/astrolog/astrolog-5.40-r3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="A many featured astrology chart calculation program"
+HOMEPAGE="http://www.astrolog.org/astrolog.htm"
+SRC_URI="http://www.astrolog.org/ftp/ast54unx.shr"
+
+LICENSE="astrolog"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="X"
+
+DEPEND="X? ( x11-libs/libX11 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+src_unpack() {
+	sh "${DISTDIR}"/ast54unx.shr || die
+}
+
+src_prepare() {
+	default
+
+	# remove stripping of created binary, dump hardcoded CFLAGS,
+	# respect CC (bug #243606), and CFLAGS (bug #240057)
+	sed \
+		-e 's:strip:#strip:' -e 's:^CFLAGS = :#CFLAGS = :' \
+		-e 's:\tcc :\t$(CC) $(CFLAGS) $(LDFLAGS) :' \
+		-i Makefile || die
+
+	# we use /usr/share/astrolog for config and (optional) ephemeris-data-files
+	sed -i -e "s:~/astrolog:/usr/share/astrolog:g" astrolog.h || die
+
+	# if we use X, we need to add -L/usr/X11R6/lib to compile succesful
+	#use X && sed -i -e "s:-lm -lX11:-lm -lX11 -L/usr/X11R6/lib:g" Makefile
+
+	# if we do NOT use X, we disable it by removing the -lX11 from the Makefile
+	# and remove the "#define X11" and "#define MOUSE" from astrolog.h
+	use X || ( sed -i -e "s:-lm -lX11:-lm:g" Makefile || die
+		   sed -i -e "s:#define X11:/*#define X11:g" astrolog.h || die
+		   sed -i -e "s:#define MOUSE:/*#define MOUSE:g" astrolog.h || die)
+
+	# any user may have an own astrolog configfile
+	#sed -i -e "s:astrolog.dat:astrolog.dat:g" astrolog.h || die
+}
+
+src_compile() {
+	emake CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+	dobin astrolog
+	dodoc Helpfile.540 README.1ST README.540 Update.540
+	insinto /usr/share/astrolog
+	doins astrolog.dat
+}
+
+pkg_postinst() {
+	elog "There is a sample config file /usr/share/astrolog/astrolog.dat"
+	elog "astrolog looks in current dir for a file astrolog.dat before"
+	elog "using the file in /usr/share/astrolog"
+	elog "If you want extended accuracy of astrolog's calculations you"
+	elog "can emerge the optional package \"astrolog-ephemeris\" which"
+	elog "needs ~4.7 MB additional diskspace for the ephemeris-files"
+}

diff --git a/app-misc/astrolog/metadata.xml b/app-misc/astrolog/metadata.xml
index 097975e..6f49eba 100644
--- a/app-misc/astrolog/metadata.xml
+++ b/app-misc/astrolog/metadata.xml
@@ -1,4 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
+<!-- maintainer-needed -->
 </pkgmetadata>


             reply	other threads:[~2016-07-07 19:48 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-07 19:48 Austin English [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-30 14:41 [gentoo-commits] repo/gentoo:master commit in: app-misc/astrolog/ Sam James
2024-10-30 14:41 Sam James
2024-10-30 11:07 Sam James
2024-10-30 11:07 Sam James
2024-09-03 16:56 Petr Vaněk
2024-09-03 16:56 Petr Vaněk
2024-09-03 16:56 Petr Vaněk
2023-11-29 14:09 Arthur Zamarin
2023-09-22  9:47 Arthur Zamarin
2023-09-22  9:15 Arthur Zamarin
2023-09-22  9:15 Arthur Zamarin
2022-07-31 12:32 David Seifert
2022-07-16  8:57 Agostino Sarubbo
2022-07-15 12:14 Sam James
2022-07-15 11:08 Arthur Zamarin
2022-07-15 10:13 Arthur Zamarin
2022-07-15  9:09 Sam James
2018-05-20  0:33 Aaron Bauman
2018-05-17 21:18 Sergei Trofimovich
2018-04-07 20:22 Sergei Trofimovich
2018-02-24  8:07 Jason Zaman
2018-02-22 22:46 Andreas Sturmlechner
2016-05-21 17:51 Pacho Ramos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1467920820.e707745e42172a9d5741eb10c52fbe069e5e6ac1.wizardedit@gentoo \
    --to=wizardedit@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox