From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-astronomy/xephem/Manifest | 7 ++ .../xephem/files/xephem-3.7.7-implicits.patch | 12 ++ .../files/xephem-3.7.7-respect_env_vars.patch | 137 +++++++++++++++++++++ sci-astronomy/xephem/metadata.xml | 16 +++ sci-astronomy/xephem/xephem-3.7.7.ebuild | 55 +++++++++ 5 files changed, 227 insertions(+) create mode 100644 sci-astronomy/xephem/Manifest create mode 100644 sci-astronomy/xephem/files/xephem-3.7.7-implicits.patch create mode 100644 sci-astronomy/xephem/files/xephem-3.7.7-respect_env_vars.patch create mode 100644 sci-astronomy/xephem/metadata.xml create mode 100644 sci-astronomy/xephem/xephem-3.7.7.ebuild (limited to 'sci-astronomy/xephem') diff --git a/sci-astronomy/xephem/Manifest b/sci-astronomy/xephem/Manifest new file mode 100644 index 000000000000..82173f0ae2f5 --- /dev/null +++ b/sci-astronomy/xephem/Manifest @@ -0,0 +1,7 @@ +AUX xephem-3.7.7-implicits.patch 305 SHA256 c512083980a72c03ca37cfc1db4d23bf7a6a4fa343cae41ec50bf790d9f50846 SHA512 220186bb7f72fe0de6ca75a67df7b1a4d4cc57cc4768d565dc8225e20df93738c7bdd62bde6297941d1ec6638800950ef56e355de8ca1e3e8192b903b021adba WHIRLPOOL ce6bf19fdcced1059b62f7b73f4eb79dc6028aabea85e33733220c4cb431b6a91306f9d12aaabe5d0b9a8bd54c6384237ccb6deea48c119b0a0583e37dcc66b5 +AUX xephem-3.7.7-respect_env_vars.patch 3781 SHA256 13c7f579f76300d8efd28e721094d826bdfda173ff1795be380b2a2d368bc7cb SHA512 84a9697c3b05ed28bcc59f4b30807aad76c3228e1aec3db898995d36cae3ef58557ff984a57f60b99e15dd04670a65061451dc00437498c14ed081c0cf06830d WHIRLPOOL 2b409bc14acc527d4597aac0a6ebb0b0f6594a29994d03cce0729fa1535e86a9cd8acb0de9284cf47f795b2abba8579a6773a29b088abc9485a3a88ecd242cbb +DIST xephem-3.7.7.tar.gz 18128523 SHA256 d1f8e17cfc5d2e3af5fd5a8bcf34bbf99a79d40f66326c098a819f82af62b4b7 SHA512 d9cfecf0ce8aa495f66fcf6772ca7df0638cef8b9f18d9d6cbf013846a7575786ae9b5c515abc2058783baa7610320c893ddbc6f68bae28c65661a1c73b88634 WHIRLPOOL 1986700ee6207b4a68ea8e5acb3c37f45286b48c5ed392934eb0b9beb2f9e733c2e995fc367da1f4079b7b48d9d92e2e5400658b9ed36cbf3961969f26e6013c +EBUILD xephem-3.7.7.ebuild 1273 SHA256 02578a7f1afc3526a87d18cb40174c68d52d2ccfee7a54517c339dd655ce44a0 SHA512 3acac86ea6ec890cf925fea02f9593e0e5c3fac084c0d5319569b6b7242a02f8dbe045098afbf5d354240373b30f0625e626b368fc0bb62cc059b1ad9d6be3fd WHIRLPOOL be794e2503b66ee6f13f1f994dcdf6f26745336e2475e7f3e1e9c164c77807598c59b666f133d8fb3b181d28ab318a8c7e93eaa96cd1693b10090caafe401eb6 +MISC ChangeLog 3147 SHA256 68391384388e5c06ec5ab309a1bbca40e410851b0815927f5dfa24139011f7db SHA512 0edc3ab689839cd8169fbc83bf2aa7a160dffa0bc5e0f75ac20fd0bcd048441ebbbbbe1002bef242fef18841bb61600f764c47867ef3a512f4676d1d73ae49b8 WHIRLPOOL 40728af8460c0ba8632d83fa784d002451cc7bbfd55436f547f1b6056cc3802e3bb5fb0c7ddc88686743cc7fd6bc50cd0a9616fab342e2ebf4a81d32bfba4054 +MISC ChangeLog-2015 9523 SHA256 1991fd54ab5c192f351fca327943ee998f5028d21d12eb18084b469f2bcb73f6 SHA512 5ff4afb15f3c6c5dae19ed301ad5b7ec18705190b5edcaeb76fe718394891123b77a88677f268b74e2cfdcd886599c1932dadd8198f812f5fcc124b8623b3314 WHIRLPOOL 2c405ec9c93b1b085cc7e5de1e11bf655c909ad8e8b73f57e299d763dabda86142d413b4a3a8e36aa828bcd9e1a6840dc7077e9c2530973e6b9992072c04cfca +MISC metadata.xml 724 SHA256 ef40ef574b34dd6dae8dc4e1b23e1c6c5c8a8de57efa353214bd9c79959ae512 SHA512 284438dd41ad8c88f68bec7519778e0b22f5c30f31225e8d10953ac070a81f368e92b4294d7ceb3e216af5d0f2d7a88ef25be164fa8f98ec2e26a4206317abb2 WHIRLPOOL bd6b43cc78b6ece7d7550a887f12b1050eba37bba61853cf09b2cbea44f74bbba911987909cabe1e48d4c13b1458b8be024745d1502515ee8246117922439295 diff --git a/sci-astronomy/xephem/files/xephem-3.7.7-implicits.patch b/sci-astronomy/xephem/files/xephem-3.7.7-implicits.patch new file mode 100644 index 000000000000..4c340711e0e8 --- /dev/null +++ b/sci-astronomy/xephem/files/xephem-3.7.7-implicits.patch @@ -0,0 +1,12 @@ +sunmenu.c:920:3: warning: implicit declaration of function ‘strptime’ + +--- a/GUI/xephem/sunmenu.c ++++ b/GUI/xephem/sunmenu.c +@@ -1,6 +1,7 @@ + /* code to manage the sun display + */ + ++#define _XOPEN_SOURCE /* See feature_test_macros(7) */ + #include + #include + #include diff --git a/sci-astronomy/xephem/files/xephem-3.7.7-respect_env_vars.patch b/sci-astronomy/xephem/files/xephem-3.7.7-respect_env_vars.patch new file mode 100644 index 000000000000..e916bd339782 --- /dev/null +++ b/sci-astronomy/xephem/files/xephem-3.7.7-respect_env_vars.patch @@ -0,0 +1,137 @@ +diff -ruN a/GUI/xephem/Makefile b/GUI/xephem/Makefile +--- a/GUI/xephem/Makefile 2015-08-09 22:36:50.000000000 +0100 ++++ b/GUI/xephem/Makefile 2016-01-24 09:34:24.378578717 +0000 +@@ -10,9 +10,9 @@ + # one executable, xephem. + + # These -I and -L flags point to the supporting XEphem libraries +-LIBINC = -I../../libastro -I../../libip -I../../liblilxml -I../../libjpegd -I../../libpng -I../../libz +-LIBLNK = -L../../libastro -L../../libip -L../../liblilxml -L../../libjpegd -L../../libpng -L../../libz +-LIBLIB = -lastro -lip -llilxml -ljpegd -lpng -lz ++LIBINC = -I../../libastro -I../../libip -I../../liblilxml ++LIBLNK = -L../../libastro -L../../libip -L../../liblilxml ++LIBLIB = -lastro -lip -llilxml -ljpeg -lpng -lz + + # MOTIFI is the directory containing the Xm directory of include files. + # MOTIFL is the directory containing the libXm.a library. +@@ -30,12 +30,9 @@ + endif + + # for linux and Apple OS X +-CC = gcc +-CLDFLAGS = -g +-CFLAGS = $(LIBINC) $(CLDFLAGS) -O2 -Wall -I$(MOTIFI) -I/opt/X11/include +-LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) -L/opt/X11/lib + XLIBS = -lXm -lXp -lXt -lXext -lXmu -lX11 +-LIBS = $(XLIBS) $(LIBLIB) -lm ++CFLAGS := $(LIBINC) $(CFLAGS) ++LIBS = $(LIBLNK) $(XLIBS) $(LIBLIB) -lm + + # static linking on Apple using X11 libs from ports + # CC = gcc +@@ -68,9 +65,9 @@ + # MOTIFI = -I/usr/include + # MOTIFL = -L/usr/lib + # CC = cc +-# CLDFLAGS = ++# CLDFLAGS = + # CFLAGS = $(LIBINC) $(CLDFLAGS) -O -I$(MOTIFI) +-# LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) ++# LDFLAGS = $(LIBLNK) $(CLDFLAGS) -L$(MOTIFL) + # XLIBS = -lXm -lXt -lX11 + # LIBS = $(XLIBS) $(LIBLIB) -lsocket -lnsl -lc -lm /usr/ucblib/libucb.a + # Note: if you get regex undefined, add -lgen to the end of LIBS. +@@ -195,12 +192,9 @@ + nroff -man $? > $@ + + libs: +- cd ../../libastro; make +- cd ../../libip; make +- cd ../../libjpegd; make +- cd ../../liblilxml; make +- cd ../../libpng; make +- cd ../../libz; make ++ $(MAKE) -C ../../libastro ++ $(MAKE) -C ../../libip ++ $(MAKE) -C ../../liblilxml + + clean: + rm -fr *.o ../../lib*/*.[ao] +diff -ruN a/libastro/Makefile b/libastro/Makefile +--- a/libastro/Makefile 2006-02-24 03:37:31.000000000 +0000 ++++ b/libastro/Makefile 2016-01-24 09:30:28.745982455 +0000 +@@ -4,8 +4,6 @@ + # compiler and flags + + # gcc +-CC = gcc +-CFLAGS= -O2 -Wall + + # macosx universal binary + # CFLAGS= -O2 -Wall -arch i386 -arch ppc +@@ -83,11 +81,11 @@ + vsop87_data.o + + libastro.a: $(HS) $(OBJS) +- ar rv $@ $(OBJS) +- ranlib $@ ++ $(AR) rv $@ $(OBJS) ++ $(RANLIB) $@ + + libastro.so: $(HS) $(OBJS) +- $(CC) -shared -o $@ $(OBJS) ++ $(CC) $(LDFLAGS) -shared -o $@ $(OBJS) + + clobber: + rm -f *.o libastro.a +diff -ruN a/libip/Makefile b/libip/Makefile +--- a/libip/Makefile 2009-01-05 20:53:46.000000000 +0000 ++++ b/libip/Makefile 2016-01-24 09:30:28.745982455 +0000 +@@ -2,8 +2,7 @@ + # (C) 2001 Elwood Charles Downey + + # gcc +-CC = gcc +-CFLAGS= -I../libastro -O2 -Wall ++CFLAGS += -I../libastro + + # macosx universal binary + # CFLAGS= -I../libastro -O2 -Wall -arch i386 -arch ppc +@@ -36,11 +35,11 @@ + HS = ip.h fsmatch.h + + libip.a: $(HS) $(OBJS) +- ar rv $@ $(OBJS) +- ranlib $@ ++ $(AR) rv $@ $(OBJS) ++ $(RANLIB) $@ + + libip.so: $(OBJS) +- gcc -shared -o $@ $(OBJS) ++ $(CC) $(LDFLAGS) -shared -o $@ $(OBJS) + + clobber: + rm -f *.o libip.a +diff -ruN a/liblilxml/Makefile b/liblilxml/Makefile +--- a/liblilxml/Makefile 2006-02-24 03:37:32.000000000 +0000 ++++ b/liblilxml/Makefile 2016-01-24 09:30:28.745982455 +0000 +@@ -4,8 +4,6 @@ + # compiler and flags + + # gcc +-CC = gcc +-CFLAGS= -O2 -Wall + + # macosx universal binary + # CFLAGS= -O2 -Wall -arch i386 -arch ppc +@@ -27,8 +25,8 @@ + OBJS = lilxml.o base64.o + + liblilxml.a: $(HS) $(OBJS) +- ar r $@ $(OBJS) +- ranlib $@ ++ $(AR) r $@ $(OBJS) ++ $(RANLIB) $@ + + liltest: liltest.o liblilxml.a + $(CC) $(LDFLAGS) -o liltest liltest.o liblilxml.a diff --git a/sci-astronomy/xephem/metadata.xml b/sci-astronomy/xephem/metadata.xml new file mode 100644 index 000000000000..f75d933bc7ec --- /dev/null +++ b/sci-astronomy/xephem/metadata.xml @@ -0,0 +1,16 @@ + + + + + sci-astronomy@gentoo.org + Gentoo Astronomy Project + + + Xephem is an interactive astronomical ephemeris program for X Windows + systems. It computes heliocentric, geocentric and topocentric + information for fixed celestial objects and objects in heliocentric + and geocentric orbits; has built-in support for all planet positions; + the moons of Jupiter, Saturn and Earth; Mars' and Jupiter's central + meridian longitude; Saturn's rings; and Jupiter's Great Red Spot. + + diff --git a/sci-astronomy/xephem/xephem-3.7.7.ebuild b/sci-astronomy/xephem/xephem-3.7.7.ebuild new file mode 100644 index 000000000000..ad77acbd7215 --- /dev/null +++ b/sci-astronomy/xephem/xephem-3.7.7.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +DESCRIPTION="Interactive tool for astronomical ephemeris and sky simulation" +HOMEPAGE="http://www.clearskyinstitute.com/xephem" +SRC_URI="http://97.74.56.125/free/${P}.tar.gz" + +LICENSE="XEphem" +SLOT=0 +KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=">=x11-libs/motif-2.3:0 + virtual/jpeg:0= + media-libs/libpng:0=" +DEPEND="${RDEPEND} + sys-apps/groff" + +PATCHES=( + "${FILESDIR}/${P}-respect_env_vars.patch" + "${FILESDIR}/${P}-implicits.patch" +) + +src_prepare() { + default + echo > "${T}"/XEphem "XEphem.ShareDir: /usr/share/${PN}" + echo > "${T}"/99xephem "XEHELPURL=/usr/share/doc/${PF}/html/xephem.html" +} + +src_compile() { + tc-export CC AR RANLIB + emake -C GUI/xephem +} + +src_install() { + insinto /usr/share/X11/app-defaults + has_version '