summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-astronomy/skychart')
-rw-r--r--sci-astronomy/skychart/Manifest14
-rw-r--r--sci-astronomy/skychart/files/skychart-3.10.2854-QA.patch99
-rw-r--r--sci-astronomy/skychart/files/skychart-3.8.2450-QA.patch107
-rw-r--r--sci-astronomy/skychart/metadata.xml10
-rw-r--r--sci-astronomy/skychart/skychart-3.10.2854.ebuild120
-rw-r--r--sci-astronomy/skychart/skychart-3.8.2450.ebuild117
6 files changed, 467 insertions, 0 deletions
diff --git a/sci-astronomy/skychart/Manifest b/sci-astronomy/skychart/Manifest
new file mode 100644
index 000000000000..cd4889e40bfa
--- /dev/null
+++ b/sci-astronomy/skychart/Manifest
@@ -0,0 +1,14 @@
+DIST catalog_gcm.tgz 4088 SHA256 6a71a6d424b4718eaa700009e5ea904117b93807a0d50d0e495ca11373948af7 SHA512 957e87b81a23b64b5e40a6f3a55908637e86b01bba0fc36c9dd293966a9870faf7de22d548b324bf9a6c15641cd09d10f76a7200b52eab48fa4c7836115518ce WHIRLPOOL 51c66ce8c027892cdc317fd74ec99178086ae430aca657fe38bda4403866c11b39cbf2fff90bba44494e34944178c015b1c337d7d376b5290ed2486286175ff5
+DIST catalog_gcvs.tgz 1152229 SHA256 3d7319422a051e6bc1a87b524191a0f36f8ae344a2a3e01e35db3345733b7dd2 SHA512 3ef3b2ee296e967c0465731b80784a06c955820d64055fd3bd499afb8b0baf01f3a7e5eb0a2c33ec8c9c7fdb81bf4d260166f92c9c4478a781cc9c5376523915 WHIRLPOOL 4fbe29a0e3cd3cb46fe82191627c990935ac22b0d3abf0f8614ce6033828ff97c0fc427dd6a458c473371d67ec55212a23ed99822542cd4fdccc299bec6b89c4
+DIST catalog_gpn.tgz 32123 SHA256 e9f7ec688ba2213d381361d3459694933db21801e54463bc0cdb42a5d51ca0d9 SHA512 71a38e07d01f250e8fc208220e858704eaa065b8638b99ba3932e23d2e17763b0a8c06cd930b466de5909497a56d9e0dbabae59d5ac2a177c60fcb4a8efcfa03 WHIRLPOOL e86cc4470132b5dc405ec27a82d01f878b39dc6ca47f496fb024f0bd865cdbb6dd878f6375bf377296f063deb14a7280191c11610b7bf0f009ac2215c0a85a57
+DIST catalog_idx.tgz 19005851 SHA256 fcf3475da1469e060d6126f14adad230d77c8829730477569f50ce0ddc7b96cc SHA512 3b144993de14b73edaffd43a35b8404adb166c5b4edc223dd78e8db361ca9a61da2e9c3d29a0af97960c1cdcb94b307ce0824f1fda3b74b518f611666d1e362e WHIRLPOOL d9f24c9ca85ba4e0412518391928b17ab3c69221de62a4a619d53b2c101d2c0b1c14126ce1837d5783eab44c96d4d4e58a94ad0244d4f109346d0571b50d8add
+DIST catalog_lbn.tgz 21272 SHA256 4f3c944dd18a814a48720d064362eb4065153acef3a90c3750e365b89cec7e75 SHA512 bddc2cf48c2e575440ed114bb447187e2f30c87312a552ff63d40e88a08e05c31da1d45cb96a5bb0216093a07e4d16336a0a664a66d6e586221217ae45d803da WHIRLPOOL f39f2759d1b47f3dd6ffd3949504ff17ad962d1d3abecefa92b72dd0332369cec7e5068cb287fd22e87e26a015cfa8dfe4522a899433681dc45e64297b43cf5b
+DIST catalog_ngc.tgz 264663 SHA256 ec6fb47415b1a43ea3b75f0dbf837efeb2fc105ea1415dc39f91b1b670bb35ca SHA512 444a3bb6ed9ed7c510ab4e593601d0b9a4b1a35b70fb43738db16e536f92f8b9a64bb238f29f685665f60b857f74c0745c4777c2f7b0be9bca0e9746e7275610 WHIRLPOOL affe66f02252af0c39c37cf7268bbc0eb83437d2b233870d5bffe70d1db7d4c75353e6eaf14bc98a647062ecc3e3975e8e72d6539759c9f50e286e72b391b8e5
+DIST catalog_ocl.tgz 24031 SHA256 1123be350a193a7b3209625ef1cb56868884af4f594e89150819743ddc9610f7 SHA512 7d94a7b9981fef9f02609f10195f181c27ca7b8d6af0b12749b13e0e86cf09e4a2ff3d915e5618940e9d8b2ab4a4198b59cd05302322a5862f53535449f343e7 WHIRLPOOL ca43db7dc73d983cb4fdcf27230d5a752c6cd3e354c1c94883d1079b2857a098d2d6361bf1b9fabc10050cc97d1fcd689febbc33fdd79ab784dbfc44b5a58a66
+DIST catalog_pgc.tgz 77747054 SHA256 9336f8f45fc2a5b038d7b6f7427e1d6ed745abce08983904027180be078bb96b SHA512 10afdf72e6503c82b4b2376a5fdf7993b3074fc731d006d8515cfe84b1a2eb69f12dc9b5f6b43e0b92654fb4a62c3d80d820f3d2e545df97c54fd250b7005b95 WHIRLPOOL 7c93a581b71262e0e024fffa9ebb04c7a7c200410d42839d1d7a5f5be68cfa27a56e81e4d34c3ac7fc046d09d543a9614f033ce34e187e653c02fe707485b401
+DIST catalog_tycho2.tgz 43237839 SHA256 1591660c87eeec7ea3f34c24727c9a2958aa1493cb877d4c89c6101f60c0550e SHA512 722b542f09752353eab621fdd6559a9e28a9558500f550e63ed10111c29b578a49356bd6d548c4b9b4355e3b3bd5d46f311de71946689fcb949e85c3948d7b67 WHIRLPOOL 72fb06d745fed884be00bc4f0873611fb416424e474efd7424131133400442731a7ff3abba9c29e9b5d3d1463b6ff3a05b62767ef3a23b8ab42f1811f83d1582
+DIST catalog_wds.tgz 3659028 SHA256 b8d57f5ca4dd778c8396ea31919c2978f28aa3e42826139e50058747b4735531 SHA512 3021f2e528ede7dc43744710b9b6c1188120cd2d5e8731641dcc2aed68f83ee4b8f0c8ece743befd3e35a2e771e3931ceead1da34dadae4dc3948f59a6e96f7f WHIRLPOOL 6ffcebffdb1042965ef5f86b89ce17d3ec03229ca803243c14ebfaa664e94c9e466243afd5601bbb225adb298a7ee1b87aeafe65b684c38416fb4a8b2ba1fd71
+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.10-2854-src.tar.xz 41878300 SHA256 0554e2b875531db6df96c3dc9c7d5dc9fa8b1937df002cd3e8a9bb20f795976b SHA512 898a32c86a6f8ebf8d28e9cd0eb68c9f7f32d717bc54a4e91e3e5468291544ee2c9b1355c19ec13d89e09a83543ebd159d4b5ec4db732c4105eab3bb1c218116 WHIRLPOOL b30efa210fd65290c30547cd0d7badcd45ef3b07fb2f1bacf570eaf01a910739b2bf32d033a1d6ceaad9593884e20bb7a7547eea7705f3b7975e869186c544f6
+DIST skychart-3.8-2450-src.tar.bz2 57002014 SHA256 61efa6f65cf81ea5ebdc35cb84e2be4b559202b0f3ff8b6a266eb0f2022527e5 SHA512 7d3275b8af6a3bcf4bec53dec5faa33fe4866eac8b55c63c68a8883764840ad373d23a2f86b68ec12d0c7e540d7e07dce0072fa713b6519b3fe3ed9dfb431461 WHIRLPOOL bdaa978e62781d3a4170559d07ff663c9f9c3f4eebe83d57bc5df98f3e554a0dd1b071f58ad21a3d64c188ea0808ac28b79a13f21a0bf27766fb3ac2c8467aa0
diff --git a/sci-astronomy/skychart/files/skychart-3.10.2854-QA.patch b/sci-astronomy/skychart/files/skychart-3.10.2854-QA.patch
new file mode 100644
index 000000000000..085f04eaaa1c
--- /dev/null
+++ b/sci-astronomy/skychart/files/skychart-3.10.2854-QA.patch
@@ -0,0 +1,99 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sun Apr 21 16:14:18 UTC 2013
+Subject:
+
+--- skychart-3.8-2450-src/skychart/library/getdss/Makefile
++++ skychart-3.8-2450-src/skychart/library/getdss/Makefile
+@@ -1,24 +1,24 @@
+ CPPFLAGS=-I. -O3 -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
+
+ OBJS = getdss_lib.o dss.o extr_fit.o getpiece.o \
+ hdcmprss.o bitinput.o decode.o dodecode.o hinv.o \
+ platelst.o qtreedec.o
+-LIBS = -lm -lstdc++
++LIBS += -lm -lstdc++
+
+ 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= -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
+@@ -24,14 +24,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/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..19d4dc641969
--- /dev/null
+++ b/sci-astronomy/skychart/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">skychart</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-astronomy/skychart/skychart-3.10.2854.ebuild b/sci-astronomy/skychart/skychart-3.10.2854.ebuild
new file mode 100644
index 000000000000..c1a6369eacda
--- /dev/null
+++ b/sci-astronomy/skychart/skychart-3.10.2854.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit toolchain-funcs gnome2-utils eutils
+
+DESCRIPTION="Planetarium for amauter astronomers"
+HOMEPAGE="http://www.ap-i.net/skychart/"
+
+MY_PV=${PV:0:4}-${PV:5: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-software/version_${PV:0:4}/skychart-${MY_PV}-src.tar.xz"
+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"
+
+CDEPEND="x11-libs/gtk+:2
+ x11-libs/libX11"
+RDEPEND="${CDEPEND}
+ x11-misc/xplanet"
+DEPEND="${CDEPEND}
+ >=dev-lang/lazarus-1.0.4
+ >=dev-lang/fpc-2.6.0"
+
+S=${WORKDIR}/${PN}-${MY_PV}-src
+
+src_unpack() {
+ unpack skychart-${MY_PV}-src.tar.xz
+
+ 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,appdata,icons,pixmaps}
+
+ dodoc system_integration/Linux/share/doc/skychart/changelog
+
+ 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
+}
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..5414f8c51663
--- /dev/null
+++ b/sci-astronomy/skychart/skychart-3.8.2450.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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-1.0.4
+ >=dev-lang/fpc-2.6.0"
+
+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
+}