diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-04-21 18:01:01 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-04-21 18:01:01 +0000 |
commit | df8c34f1bb3ba52f42e606db5e14245d3b13c8e0 (patch) | |
tree | 437400e833cfeb1e71f4b1a2b4026e7881bf6d0d /sci-astronomy/skychart | |
parent | initial import wrt #346699 (diff) | |
download | historical-df8c34f1bb3ba52f42e606db5e14245d3b13c8e0.tar.gz historical-df8c34f1bb3ba52f42e606db5e14245d3b13c8e0.tar.bz2 historical-df8c34f1bb3ba52f42e606db5e14245d3b13c8e0.zip |
initial import wrt #346699
Package-Manager: portage-2.2.0_alpha173/cvs/Linux x86_64
Manifest-Sign-Key: 0xE73C35B3
Diffstat (limited to 'sci-astronomy/skychart')
-rw-r--r-- | sci-astronomy/skychart/Manifest | 18 | ||||
-rw-r--r-- | sci-astronomy/skychart/files/skychart-3.8.2450-QA.patch | 107 | ||||
-rw-r--r-- | sci-astronomy/skychart/metadata.xml | 9 | ||||
-rw-r--r-- | sci-astronomy/skychart/skychart-3.8.2450.ebuild | 117 |
4 files changed, 249 insertions, 2 deletions
diff --git a/sci-astronomy/skychart/Manifest b/sci-astronomy/skychart/Manifest index 253fa7f8a07d..50cee97fdb5a 100644 --- a/sci-astronomy/skychart/Manifest +++ b/sci-astronomy/skychart/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX skychart-3.8.2450-QA.patch 3391 SHA256 a3c703dc41fb8124850c88cb07a0af8ebdf6224749ca4ccc7634f68ca7f407dd SHA512 57105f1375f80cea556947fc5b1d31ea1869221b601e36b4c47e0f8f12c0ec9ac19fa44bae3ae21659123344e4a86ecf9bfd2cd27cd951720a31981cb88eef2d WHIRLPOOL be16c2c7675db18e134a796254f252bd2cf96233627891be0da1820255015dd479d651e1de3f84127e86fcf180623ab57bb093f1b38e1112147dc0a7d5d322ec DIST catalog_gcm.tgz 4088 SHA256 6a71a6d424b4718eaa700009e5ea904117b93807a0d50d0e495ca11373948af7 SHA512 957e87b81a23b64b5e40a6f3a55908637e86b01bba0fc36c9dd293966a9870faf7de22d548b324bf9a6c15641cd09d10f76a7200b52eab48fa4c7836115518ce WHIRLPOOL 51c66ce8c027892cdc317fd74ec99178086ae430aca657fe38bda4403866c11b39cbf2fff90bba44494e34944178c015b1c337d7d376b5290ed2486286175ff5 DIST catalog_gcvs.tgz 1152229 SHA256 3d7319422a051e6bc1a87b524191a0f36f8ae344a2a3e01e35db3345733b7dd2 SHA512 3ef3b2ee296e967c0465731b80784a06c955820d64055fd3bd499afb8b0baf01f3a7e5eb0a2c33ec8c9c7fdb81bf4d260166f92c9c4478a781cc9c5376523915 WHIRLPOOL 4fbe29a0e3cd3cb46fe82191627c990935ac22b0d3abf0f8614ce6033828ff97c0fc427dd6a458c473371d67ec55212a23ed99822542cd4fdccc299bec6b89c4 @@ -12,6 +15,17 @@ DIST catalog_wds.tgz 3659028 SHA256 b8d57f5ca4dd778c8396ea31919c2978f28aa3e42826 DIST data_jpleph.tgz 4576073 SHA256 cf375015f32cff79243699df023d9838e2599c59f477322dedf0c4da25831eb1 SHA512 06cd3c740c29cdb62b874de4afbbcb481ef757016dc828244f601382500400eac0af7b2f14086de327e12ec03b284b42c6bc5a2d98d8e678cd6b81f624bcb4bd WHIRLPOOL cb7d4363171d742812bc16ed3433d85bc3a235b78f00882a977882817089996255be2d8c69392c6cfa209eca96c3cef672b50ad576d1e05aa7450d8666db0aa2 DIST pictures_sac.tgz 38540724 SHA256 0257083278cad3e7fd28651f329af136149a65e3c655dcd0923ec691c470de44 SHA512 c477f8458505675be94a890caae0799223f667fb9cef9d27e7b03761659cb2951006c9514884e39d6af307886264c03fd0aac11951c38a72ef7dac2ed3388af6 WHIRLPOOL 707826c8c8ed8fef55441946b326543f1ff581b17bfaefce418a60fa4ad0a9ee5f3c600fccb1f1ca179c436d544821d156831baf5839173a9de3b4fe38c588df DIST skychart-3.8-2450-src.tar.bz2 57002014 SHA256 61efa6f65cf81ea5ebdc35cb84e2be4b559202b0f3ff8b6a266eb0f2022527e5 SHA512 7d3275b8af6a3bcf4bec53dec5faa33fe4866eac8b55c63c68a8883764840ad373d23a2f86b68ec12d0c7e540d7e07dce0072fa713b6519b3fe3ed9dfb431461 WHIRLPOOL bdaa978e62781d3a4170559d07ff663c9f9c3f4eebe83d57bc5df98f3e554a0dd1b071f58ad21a3d64c188ea0808ac28b79a13f21a0bf27766fb3ac2c8467aa0 -EBUILD skychart-3.8.2450.ebuild 2422 SHA256 ff9390fac907b7011d4bb29cae0d13521a13abdd330b45bdaeeb28067c7ca413 SHA512 cf68bc74e07876bc9dd70a2550583100f2cf8e4d2ad24242f066f10fe3822345f2c22f5211ee045d135f01084a2656fbeaf962d4777a658acc95934fa5345ed0 WHIRLPOOL 60529f2d59b8b31611a999e685d868bf4341b1d33b8fafb889a3ab21bd0dbfc3529b410fdcd3343e027643e633e6ee1e3e4ccaf04720b40531f67815aaee45a7 -MISC ChangeLog 317 SHA256 acd79e25ac376b34d3a125910687d92f7e50ab3deba27a40d5fecf87173c5c76 SHA512 1d3de0cb60f230d1594753c4b6341ef612eb318130d358b77b3d3252e58624b4f3d4cac52d58493796a1093aa228f7da3950659cbe6099cb832cb47615fccf0f WHIRLPOOL 84b9c1bf5dc3de67474de2da33df2c104d924ced318223cc38688f56c9322541ac0ccea569e26dc42e3757fd3cac64dc9ba24b90c5e691f324e0b08981c98ac7 +EBUILD skychart-3.8.2450.ebuild 2533 SHA256 fd172825e35a653a796d9e96dac656ac8f25b64a1a58e979758c7340fe4487e6 SHA512 d82692bd2fa5490a52538378f2a52f37ba65bbdd058ad72f81a27e88aa2370baf29e511cbc2bf95486f3a29dd4c4a929c456f16aaf06b640485d4adc134db21e WHIRLPOOL 85863210b8137068138c547cfb78ae5e7239b9939d6555607a7ea2dc54779c9f6a5b3f164633db60a8cba54a61fa79d813a1c9e0ce2ed5b9afd90b8bab006b4a +MISC ChangeLog 413 SHA256 2bde1e4095f1a976ea11e4ea1bea196f5b2b3a4ee8913bc9e8c6d9e23a02fe3a SHA512 bc0cec132b1c47b471467fb286e0ace2b3c18aa283ebc85c62d81805bd781badbcf457cfa89e76db5a044e3c34c23268b23a6e4365705887ed1096f27c3256e8 WHIRLPOOL d4920f27a423f418cb5542d1d014e37ed5eaf073e20480e40a86f18137a2e4cff74575f269250f1c1393c656d479f6e1b16b07b1cb82ab6270583f86e1f56d59 MISC metadata.xml 235 SHA256 11ffaf6c7e9d3f8dbb48fb60cd443d87b61015bc3197206ca230f5c2b0c1e013 SHA512 8ff2114c96567a53f83cd07149d1530286182f54b3d1286b9ceccea41e85734be19d0f60876c73880d76baac48e698de91114bfda459e2ee6ade9c3237847133 WHIRLPOOL bd4bb26791fe245f1c2407aa690887524eef3e76de87b4f2b7049f436661ee78a669e4fe4415e227aa50ee404bbfbaf1822fa648792919f93cb3674fa0f55858 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQEcBAEBCAAGBQJRdCldAAoJEFpvPKfnPDWz1IgH/13o+XAhJ1cFtFMbcWMPaX+G +DXhCVLkN/HlBfIhF5rBzqTGPUJRfG+61mU+WAHlqvOYQKFdZwkgRD/MzYTvuphlo +evt9uPEz0wS1lAmS2Dn5A2z1llYi0EHW4rJpxBs6YxiLt50UUrGgbjMAyh4oPHdA +ixa5YFFlK1CE1JF9xwhDZuf9JtRePNX0mv+0hH8ZeW2yrecmI96x3jK67uVOR8Q9 +0egrRk2PWMgymcm153F0zVtTz2v7Eo62rgt0oiqwjdbES9Y6KXqKuTKy4iBcdxzH +yio4WlFJKGFgvyOdlbw4ztntVmZcSr/Sj4BUsnRfuSKWdXCCllEy10QRFyVQv2g= +=onDo +-----END PGP SIGNATURE----- diff --git a/sci-astronomy/skychart/files/skychart-3.8.2450-QA.patch b/sci-astronomy/skychart/files/skychart-3.8.2450-QA.patch new file mode 100644 index 000000000000..10d116a7f007 --- /dev/null +++ b/sci-astronomy/skychart/files/skychart-3.8.2450-QA.patch @@ -0,0 +1,107 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sun Apr 21 16:14:18 UTC 2013 +Subject: build system + +respect CFLAGS, LDFLAGS and don't do other silly stuff + +--- skychart-3.8-2450-src/skychart/library/getdss/Makefile ++++ skychart-3.8-2450-src/skychart/library/getdss/Makefile +@@ -1,21 +1,21 @@ + CPPFLAGS=-I. -DUNIX -D_CONSOLE -fPIC $(arch_flags) + #### For Suns and similar wrong-endian computers, add -DWRONG_WAY_BYTE_ORDER. +-CC = gcc ++CC ?= gcc + OSTYPE = $(shell uname) + ifneq ($(findstring Darwin,$(OSTYPE)),) + SO_Name = libgetdss.dylib +-LDFLAGS= -Wl,-single_module -dynamiclib -lc -lm -lstdc++ ++LDFLAGS += -Wl,-single_module -dynamiclib -lc -lm -lstdc++ + else + SO_Name = libgetdss.so +-LDFLAGS= -shared -Wl,-soname,$(SO_Name) $(arch_flags) ++LDFLAGS += -shared -Wl,-soname,$(SO_Name) $(arch_flags) + endif + ifneq ($(findstring W32,$(OSTYPE)),) + SO_Name = libgetdss.dll +-LDFLAGS= -shared -Wl,-soname,$(SO_Name) ++LDFLAGS += -shared -Wl,-soname,$(SO_Name) + endif + ifneq ($(findstring MINGW,$(OSTYPE)),) + SO_Name = libgetdss.dll +-LDFLAGS= -shared -Wl,-soname,$(SO_Name) ++LDFLAGS += -shared -Wl,-soname,$(SO_Name) + endif + OBJS = getdss_lib.o dss.o extr_fit.o getpiece.o \ + hdcmprss.o bitinput.o decode.o dodecode.o hinv.o \ +@@ -25,7 +25,7 @@ + all: $(SO_Name) + + $(SO_Name): $(OBJS) +- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) + + clean: + rm -f $(OBJS) $(SO_Name) +--- skychart-3.8-2450-src/skychart/library/plan404/Makefile ++++ skychart-3.8-2450-src/skychart/library/plan404/Makefile +@@ -1,7 +1,7 @@ + # Common flags +-CC = gcc ++CC ?= gcc + #CFLAGS = -O3 -ffast-math (fast-math removed for better compatibility ) +-CFLAGS = -O3 -fPIC $(arch_flags) ++CFLAGS += -fPIC $(arch_flags) + OSTYPE = $(shell uname) + ifneq ($(findstring Darwin,$(OSTYPE)),) + SO_Name = libplan404.dylib +@@ -35,7 +35,7 @@ + $(CC) $(CFLAGS) -c $< -o $@ + + $(SO_Name): $(OBJ) +- $(CC) $(CFLAGS) $(LIBFLAGS) -o $@ $(OBJ) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(LIBFLAGS) -o $@ $(OBJ) + + clean: + rm -f $(OBJ) $(SO_Name) +--- skychart-3.8-2450-src/skychart/library/wcs/Makefile ++++ skychart-3.8-2450-src/skychart/library/wcs/Makefile +@@ -1,5 +1,5 @@ +-CFLAGS= -g -w -fPIC $(arch_flags) +-CC= gcc ++CFLAGS += -w -fPIC $(arch_flags) ++CC ?= gcc + + OSTYPE = $(shell uname) + ifneq ($(findstring Darwin,$(OSTYPE)),) +@@ -29,7 +29,7 @@ + all: $(SO_Name) + + $(SO_Name): $(OBJS) +- $(CC) $(CFLAGS) $(LIBFLAGS) -o $@ $(OBJS) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(LIBFLAGS) -o $@ $(OBJS) + + cdcwcs.o: fitsfile.h wcs.h + actread.o: fitsfile.h wcscat.h wcs.h fitshead.h wcslib.h +--- skychart-3.8-2450-src/skychart/library/Makefile.in ++++ skychart-3.8-2450-src/skychart/library/Makefile.in +@@ -23,14 +23,14 @@ + $(MAKE) -C wcs -f Makefile.win64 all + else + ifeq ($(CPU_TARGET),i386) +- $(MAKE) -C getdss all arch_flags=-m32 +- $(MAKE) -C plan404 all arch_flags=-m32 +- $(MAKE) -C wcs all arch_flags=-m32 ++ $(MAKE) -C getdss all ++ $(MAKE) -C plan404 all ++ $(MAKE) -C wcs all + else + ifeq ($(CPU_TARGET),x86_64) +- $(MAKE) -C getdss all arch_flags=-m64 +- $(MAKE) -C plan404 all arch_flags=-m64 +- $(MAKE) -C wcs all arch_flags=-m64 ++ $(MAKE) -C getdss all ++ $(MAKE) -C plan404 all ++ $(MAKE) -C wcs all + else + $(MAKE) -C getdss all + $(MAKE) -C plan404 all diff --git a/sci-astronomy/skychart/metadata.xml b/sci-astronomy/skychart/metadata.xml new file mode 100644 index 000000000000..bfabcd0164b9 --- /dev/null +++ b/sci-astronomy/skychart/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>hasufell@gentoo.org</email> + <name>Julian Ospald</name> + </maintainer> +</pkgmetadata> + diff --git a/sci-astronomy/skychart/skychart-3.8.2450.ebuild b/sci-astronomy/skychart/skychart-3.8.2450.ebuild new file mode 100644 index 000000000000..a269d6b984ce --- /dev/null +++ b/sci-astronomy/skychart/skychart-3.8.2450.ebuild @@ -0,0 +1,117 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/skychart/skychart-3.8.2450.ebuild,v 1.1 2013/04/21 18:00:57 hasufell Exp $ + +EAPI=5 + +inherit toolchain-funcs gnome2-utils eutils + +DESCRIPTION="Planetarium for amauter astronomers" +HOMEPAGE="http://www.ap-i.net/skychart/" + +MY_PV=${PV:0:3}-${PV:4:4} +DATA_PKG="data_jpleph.tgz + catalog_gcvs.tgz + catalog_idx.tgz + catalog_tycho2.tgz + catalog_wds.tgz + catalog_gcm.tgz + catalog_gpn.tgz + catalog_lbn.tgz + catalog_ngc.tgz + catalog_ocl.tgz + catalog_pgc.tgz + pictures_sac.tgz" +SRC_URI="${DATA_SRC_URI} + mirror://sourceforge/skychart/1-%20cdc-skychart/version_${PV:0:3}/skychart-${MY_PV}-src.tar.bz2" +for i in ${DATA_PKG} ; do + SRC_URI="${SRC_URI} mirror://sourceforge/skychart/4-source_data/${i}" +done +unset i + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +# pascal +QA_FLAGS_IGNORED="usr/bin/cdcicon + usr/bin/skychart + usr/bin/varobs + usr/bin/varobs_lpv_bulletin" + +RDEPEND="x11-libs/gtk+:2" +DEPEND="${RDEPEND} + dev-lang/lazarus + dev-lang/fpc" + +S=${WORKDIR}/${PN}-${MY_PV}-src + +src_unpack() { + unpack skychart-${MY_PV}-src.tar.bz2 + + local i + for i in ${DATA_PKG} ; do + mkdir ${i} || die + cd ${i} || die + unpack ${i} + cd .. + done +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-QA.patch +} + +src_configure() { + tc-export CC CXX + + ./configure \ + fpcbin="/usr/bin" \ + fpc="/usr/lib/fpc/$(fpc -iV)/source" \ + lazarus="/usr/share/lazarus" \ + prefix="/usr" +} + +src_compile() { + # this is ugly, but the build system sux, so don't bother me + UNITDIR="/usr/share/lazarus/components/printers:/usr/share/lazarus/components/printers/unix" \ + INCDIR="/usr/share/lazarus/components/printers/unix:/usr/share/lazarus/components/printers" \ + emake -j1 +} + +src_install() { + # use build system install rules on version bump + # to check for new files + dobin varobs/{varobs,varobs_lpv_bulletin} + dobin skychart/cdcicon + newbin skychart/cdc skychart + + dolib.so skychart/library/plan404/libplan404.so + dolib.so skychart/library/getdss/libgetdss.so + dolib.so skychart/library/wcs/libcdcwcs.so + + insinto /usr/share + doins -r system_integration/Linux/share/{applications,icons,pixmaps} + + dodoc system_integration/Linux/share/doc/skychart/* + + insinto /usr/share/skychart + doins -r tools/{cat,data} + for i in ${DATA_PKG} ; do + cd "${WORKDIR}/${i}" || die + doins -r . + done +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |