summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2010-01-29 18:09:11 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2010-01-29 18:09:11 +0000
commitc5c4136ea10d40912ef61e5e560d5fed7b15e7cf (patch)
tree1cd060c54222847e384e1804566528ece19bba7b /sci-astronomy
parentVersion bump, remove old. Bit-stream compatible with previous version this time. (diff)
downloadhistorical-c5c4136ea10d40912ef61e5e560d5fed7b15e7cf.tar.gz
historical-c5c4136ea10d40912ef61e5e560d5fed7b15e7cf.tar.bz2
historical-c5c4136ea10d40912ef61e5e560d5fed7b15e7cf.zip
Version bump
Package-Manager: portage-2.2_rc61/cvs/Linux x86_64
Diffstat (limited to 'sci-astronomy')
-rw-r--r--sci-astronomy/ds9/ChangeLog10
-rw-r--r--sci-astronomy/ds9/Manifest13
-rw-r--r--sci-astronomy/ds9/ds9-6.0.ebuild64
-rw-r--r--sci-astronomy/ds9/files/ds9-6.0-main.patch326
4 files changed, 406 insertions, 7 deletions
diff --git a/sci-astronomy/ds9/ChangeLog b/sci-astronomy/ds9/ChangeLog
index d15090adf90a..bcf836a61e4d 100644
--- a/sci-astronomy/ds9/ChangeLog
+++ b/sci-astronomy/ds9/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-astronomy/ds9
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/ds9/ChangeLog,v 1.22 2009/11/25 07:32:54 bicatali Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/ds9/ChangeLog,v 1.23 2010/01/29 18:09:11 bicatali Exp $
+
+*ds9-6.0 (29 Jan 2010)
+
+ 29 Jan 2010; SĂ©bastien Fabbro <bicatali@gentoo.org> +ds9-6.0.ebuild,
+ +files/ds9-6.0-main.patch:
+ Version bump
*ds9-5.7-r2 (25 Nov 2009)
diff --git a/sci-astronomy/ds9/Manifest b/sci-astronomy/ds9/Manifest
index e48bd8b30b99..73eea2738f48 100644
--- a/sci-astronomy/ds9/Manifest
+++ b/sci-astronomy/ds9/Manifest
@@ -7,16 +7,19 @@ AUX ds9-5.7-makefile.patch 998 RMD160 d4debc34c21f9af654ec7c3c81f1600cbe896225 S
AUX ds9-5.7-saotk.patch 4907 RMD160 bbadc06a9ae2a1eb397b1f649f84054e32f19c8d SHA1 b4c787d985f5895f53dcc7da4a166897ac72b1ca SHA256 974a2a214fe8ca516d2bd5c53061dd23e6112f63f1e9d49a5e7d5c83c4adbfb0
AUX ds9-5.7-src.patch 1328 RMD160 ae66660bad5f860d410b93565722cf039a007f51 SHA1 df1fdf900ecbd527ae4d960be067f00e5160624c SHA256 f3bd7910f746aff7bb04736674c35d747e9fb09d5dcb597c216f1c55a3f65e15
AUX ds9-5.7-tcl85.patch 414 RMD160 b7a96449e52798bafab7661d5b682d4d8ac14baf SHA1 c843c1f0e1a710eab452b79c9b1b0d2f2e03a797 SHA256 554358ed24a1b537cccdadaade241362d38fe6d86e5b481c9b18e96f1ce655ea
+AUX ds9-6.0-main.patch 9010 RMD160 2c7a03b197259a0daeeb3f7121954ebcab57165d SHA1 cd5c25f21e1090a3f9ad28c8722559a66dc6b191 SHA256 5720e18a7f2a4f1e821baeeee98407462594ace47e8f431d204b8b4cddddf143
AUX ds9.png 3622 RMD160 4429d2de155ff272d58dddd447ea193bb33a78ab SHA1 0d1b655ba190ac4067ddd7efb95cec023754f3af SHA256 ff5f38cfdfd59aee262ae3443fddf35d644b8604c9d6ab07eb96a137ee0a0d28
AUX make.gentoo 237 RMD160 b0de6c53dca48199106aaec86e950d517d94bfb7 SHA1 2ccddb02a71c97acc63ec48dccf2b904b2b5cc1b SHA256 15b7b6aebaf733c4e88818119938718a3a7b89c7a255452f4b0cbfa0a1061bd6
DIST ds9.5.7.tar.gz 35061076 RMD160 1be5c1d8e14b0add4859cf6ff354841c56b9ebe1 SHA1 5d976cd69ac1f0b7ac7d255acf9f94ff2f45b7a4 SHA256 39ce857c75d408b3fff3e9fec0a7face2f68e5234c4a9ad1b3f43eceb1a4e114
+DIST ds9.6.0.tar.gz 44899040 RMD160 4b8979974057cdc506a02ea67f3559f14f830f83 SHA1 ae4bef3c636f69ad0df1f488d08e4fd99e0c78bf SHA256 ebf7b85b8adb4495470bbebf1ca2f13a8ba75ca5df66e21a4575ac931d924837
EBUILD ds9-5.7-r2.ebuild 1972 RMD160 16e2a0a196e21c5428291b6f1706e210bdbd3c32 SHA1 90401405f692ecd81696fe149187318041d6f9c9 SHA256 8429a22ef030b81300ebf3b561118edef13f96566d7b9b13a85e712371625b9d
-MISC ChangeLog 4712 RMD160 c116aea6f2ee768e38d98b788021efeeba50db7e SHA1 986646e42bc8df1e25eed59626cfd41dd5ff4e62 SHA256 3c0925d66bb284058393cdd012974d7a7cadeba659f2fcd2f9a089b5164e3ca3
+EBUILD ds9-6.0.ebuild 1994 RMD160 a93778e97b36bd0db2b9e5d4cae62e1a804eed6c SHA1 b641e129e8fc39f91675834ef00e10df349adecc SHA256 c556bda57d222523398962b9943330c49cf9ff7d1f61f5b754cc868c3d9fa6c8
+MISC ChangeLog 4853 RMD160 e29061450a38e0b298fd4b5772789e8b847d8e22 SHA1 1eb63568fc3d4902f4fc90c065deef01a4d4aca8 SHA256 958762e5bfd23fb4cb943f4dad3b6aceb043c4ed53e546f87fed781b7f038352
MISC metadata.xml 1072 RMD160 3c839d72950b8eb3ab84920e86017f97f3b14799 SHA1 1cefcee915ef90f64beb486d298972981ea3891e SHA256 42893aa6c35591819017a8708062c88df98d27ab0466ec07d7603b46d6e3719e
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.13 (GNU/Linux)
+Version: GnuPG v2.0.14 (GNU/Linux)
-iEYEARECAAYFAksM5z8ACgkQ1ycZbhPLE2BjjACfRfBSP5bZHqDZS5L+t27mDfDB
-yJEAoJJpTwoPgNKMca0EU92g9Mo6hGsg
-=yL7R
+iEYEARECAAYFAktjJFAACgkQ1ycZbhPLE2CQrwCeP7wPp/2hMpvef9JoktUfBh+9
+GRgAnAwgWwgYrHFSWSTdG+kj1K7TmVNr
+=3OpQ
-----END PGP SIGNATURE-----
diff --git a/sci-astronomy/ds9/ds9-6.0.ebuild b/sci-astronomy/ds9/ds9-6.0.ebuild
new file mode 100644
index 000000000000..05bbc974fd97
--- /dev/null
+++ b/sci-astronomy/ds9/ds9-6.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-astronomy/ds9/ds9-6.0.ebuild,v 1.1 2010/01/29 18:09:11 bicatali Exp $
+
+EAPI=2
+inherit eutils
+
+DESCRIPTION="Data visualization application for astronomical FITS images"
+HOMEPAGE="http://hea-www.harvard.edu/RD/ds9"
+SRC_URI="http://hea-www.harvard.edu/saord/download/${PN}/source/${PN}.${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+RDEPEND="dev-tcltk/blt
+ >=dev-tcltk/tcllib-1.10
+ >=dev-tcltk/tclxml-3.1
+ dev-tcltk/tkcon
+ dev-tcltk/tkimg
+ dev-tcltk/tktable
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ x11-libs/xpa
+ sci-astronomy/ast
+ sci-astronomy/funtools"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/sao${PN}"
+
+src_prepare() {
+ # some patches are adapted from fedora
+ # most of them are to use system libraries instead of bundled-ones
+ epatch "${FILESDIR}"/${PN}-5.4-htmlwidget.patch
+ epatch "${FILESDIR}"/${PN}-5.7-makefile.patch
+ epatch "${FILESDIR}"/${PN}-5.7-src.patch
+ epatch "${FILESDIR}"/${PN}-6.0-main.patch
+ epatch "${FILESDIR}"/${PN}-5.7-saotk.patch
+ epatch "${FILESDIR}"/${PN}-5.7-tcl85.patch
+
+ # remove build-time dependency on etags (i.e. emacs or xemacs)
+ sed -i -e '/^all/s/TAGS//' saotk/*/Makefile || die "sed failed"
+
+ cp "${FILESDIR}"/make.gentoo make.include
+ use amd64 && \
+ export EXTRA_CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
+ export OPTS="${CXXFLAGS}"
+}
+
+src_install () {
+ newbin bin/ds9 ds9.exe || die "failed installing ds9 binary"
+ echo "#!/bin/sh" > ds9
+ echo "LD_LIBRARY_PATH=$(dir -d ${ROOT}usr/$(get_libdir)/Tclxml?.?):\${LD_LIBRARY_PATH} ds9.exe" >> ds9.sh
+ exeinto /usr/bin
+ newexe ds9.sh ds9
+ insinto /usr/share/${PN}
+ doins -r ds9/zipdir/zvfsmntpt/* || die
+ dodoc README acknowledgement || die "failed installing basic doc"
+ dosym ../../${PN}/doc /usr/share/doc/${PF}/html
+ doicon "${FILESDIR}"/${PN}.png
+ make_desktop_entry ds9 "SAOImage DS9"
+}
diff --git a/sci-astronomy/ds9/files/ds9-6.0-main.patch b/sci-astronomy/ds9/files/ds9-6.0-main.patch
new file mode 100644
index 000000000000..d941c341d374
--- /dev/null
+++ b/sci-astronomy/ds9/files/ds9-6.0-main.patch
@@ -0,0 +1,326 @@
+diff -Nur saods9.orig/ds9/ds9.C saods9/ds9/ds9.C
+--- saods9.orig/ds9/ds9.C 2009-10-01 17:53:59.000000000 +0100
++++ saods9/ds9/ds9.C 2010-01-29 17:46:20.000000000 +0000
+@@ -13,8 +13,6 @@
+
+ void TclSetStartupScriptFileName(const char*);
+
+- int Zvfs_Init(Tcl_Interp*);
+- int Zvfs_Mount(Tcl_Interp*, char*, char *);
+
+ int Blt_Init(Tcl_Interp*);
+ int Tktable_Init(Tcl_Interp*);
+@@ -73,15 +71,13 @@
+ appname = dupstr(argv[0]);
+
+ // set default encoding dir
+- Tcl_SetDefaultEncodingDir("./zvfsmntpt/tcl8.4");
+
+ // so that tcl and tk know where to find their libs
+ // we do it here before InitLibraryPath is called
+- putenv((char*)"TCL_LIBRARY=./zvfsmntpt/tcl8.4");
+- putenv((char*)"TK_LIBRARY=./zvfsmntpt/tk8.4");
++
+
+ // invoke startup script
+- TclSetStartupScriptFileName("./zvfsmntpt/src/ds9.tcl");
++ TclSetStartupScriptFileName("/usr/share/ds9/src/ds9.tcl");
+ }
+
+ Tcl_Interp *global_interp;
+@@ -100,31 +96,8 @@
+ // We have to initialize the virtual filesystem before calling
+ // Tcl_Init(). Otherwise, Tcl_Init() will not be able to find
+ // its startup script files.
+- if (Zvfs_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "zvfs", Zvfs_Init,
+- (Tcl_PackageInitProc*)NULL);
+
+ // find current working directory, and set as mount point
+- {
+- Tcl_DString pwd;
+- Tcl_DStringInit(&pwd);
+- Tcl_GetCwd(interp, &pwd);
+-#ifdef ZIPFILE
+- ostringstream str;
+- str << (char *)Tcl_GetNameOfExecutable()
+- << "/../ds9.zip"
+- << ends;
+- if( Zvfs_Mount(interp, (char*)str.str().c_str(), Tcl_DStringValue(&pwd)) != TCL_OK ){
+- cerr << "ERROR: The auxiliary ds9 file 'ds9.zip' is missing. If you moved the ds9 program from its original location, please also move the zip file to the same place." << endl;
+- exit(1);
+- }
+-#else
+- Zvfs_Mount(interp, (char *)Tcl_GetNameOfExecutable(),
+- Tcl_DStringValue(&pwd));
+-#endif
+- Tcl_DStringFree(&pwd);
+- }
+
+ // Initialize Tcl and Tk
+ if (Tcl_Init(interp))
+@@ -133,7 +106,6 @@
+ // Tk
+ if (Tk_Init(interp))
+ return TCL_ERROR;
+- Tcl_StaticPackage(interp,"Tk", Tk_Init, Tk_SafeInit);
+
+ {
+ Tcl_DString pwd;
+@@ -142,18 +114,6 @@
+ Tcl_DStringFree(&pwd);
+ }
+
+- // Blt
+- if (Blt_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "BLT", Blt_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // Tktable
+- if (Tktable_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "Tktable", Tktable_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+ // Checkdns
+ if (Checkdns_Init(interp) == TCL_ERROR)
+ return TCL_ERROR;
+@@ -171,13 +131,6 @@
+ return TCL_ERROR;
+ Tcl_StaticPackage (interp, "tkhtml", Tkhtml_Init,
+ (Tcl_PackageInitProc*)NULL);
+-
+- // Tclxpa
+- if (Tclxpa_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "Tclxpa", Tclxpa_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+ // IIS
+ if (Iis_Init(interp) == TCL_ERROR)
+ return TCL_ERROR;
+@@ -190,88 +143,6 @@
+ Tcl_StaticPackage (interp, "tkmpeg", Tkmpeg_Init,
+ (Tcl_PackageInitProc*)NULL);
+
+- // Tclxml
+- if (Tclxml_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+-
+- // Tkimg
+- if (Tkimg_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "img",
+- Tkimg_Init,(Tcl_PackageInitProc*)NULL);
+-
+- // zlibtcl
+- if (Zlibtcl_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "zlibtcl", Zlibtcl_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // jpegtcl
+- if (Jpegtcl_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "jpegtcl", Jpegtcl_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // Tkimgjpeg
+- if (Tkimgjpeg_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "jpeg", Tkimgjpeg_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // Tifftcl
+- if (Tifftcl_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "tifftcl", Tifftcl_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // Tkimgtiff
+- if (Tkimgtiff_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "tiff", Tkimgtiff_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // Pngtcl
+- if (Pngtcl_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "pngtcl", Pngtcl_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // Tkimgpng
+- if (Tkimgpng_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "png", Tkimgpng_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // Tkimggif
+- if (Tkimggif_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "gif", Tkimggif_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // Tkimgppm
+- if (Tkimgppm_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "ppm", Tkimgppm_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // Tkimgbmp
+- if (Tkimgbmp_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "bmp", Tkimgbmp_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // Tkimgxbm
+- if (Tkimgxbm_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "xbm", Tkimgxbm_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+- // Tkimgwindow
+- if (Tkimgwindow_Init(interp) == TCL_ERROR)
+- return TCL_ERROR;
+- Tcl_StaticPackage (interp, "window", Tkimgwindow_Init,
+- (Tcl_PackageInitProc*)NULL);
+-
+ // Signal_Ext
+ #ifndef _WIN32
+ if (Signal_ext_Init(interp) == TCL_ERROR)
+@@ -294,15 +165,6 @@
+ (Tcl_PackageInitProc*)NULL);
+ #endif
+
+- // Variables
+- Tcl_SetVar(interp, "auto_path", "./zvfsmntpt/tcl8.4 ./zvfsmntpt/tk8.4 ./zvfsmntpt/blt2.4 ./zvfsmntpt/tcllib1.6 ./zvfsmntpt/src", TCL_GLOBAL_ONLY);
+- Tcl_SetVar(interp, "tcl_libPath", "./zvfsmntpt/tcl8.4", TCL_GLOBAL_ONLY);
+- Tcl_SetVar(interp, "blt_library", "./zvfsmntpt/blt2.4", TCL_GLOBAL_ONLY);
+- Tcl_SetVar(interp, "blt_libPath", "./zvfsmntpt/blt2.4", TCL_GLOBAL_ONLY);
+- Tcl_SetVar2(interp, "env", "TK_TABLE_LIBRARY", "", TCL_GLOBAL_ONLY);
+-
+- //Tcl_SetVar(interp, "tcl_rcFileName", "~/.wishrc", TCL_GLOBAL_ONLY);
+-
+ return TCL_OK;
+ }
+
+diff -Nur saods9.orig/ds9/Makefile saods9/ds9/Makefile
+--- saods9.orig/ds9/Makefile 2010-01-12 21:24:30.000000000 +0000
++++ saods9/ds9/Makefile 2010-01-29 17:53:29.000000000 +0000
+@@ -4,12 +4,7 @@
+ #--------------------------defines
+
+ ZDIR = zipdir/zvfsmntpt
+-FFILES = $(ZDIR)/$(TCLVER) \
+- $(ZDIR)/$(TKVER) \
+- $(ZDIR)/$(BLTVER) \
+- $(ZDIR)/$(TCLLIBVER) \
+- $(ZDIR)/$(TKCONVER) \
+- $(ZDIR)/$(XMLRPCVER) \
++FFILES = \
+ $(ZDIR)/src \
+ $(ZDIR)/msgs \
+ $(ZDIR)/doc \
+@@ -30,43 +25,14 @@
+ ../lib/libsaotk.a \
+ ../lib/libtkhtml.a \
+ ../lib/libtkmpeg.a \
+- ../lib/$(TCLXMLVER)/libTclxml3.2.a \
+- ../lib/$(TKIMGVER)/libtkimgwindow1.3.a \
+- ../lib/$(TKIMGVER)/libtkimgjpeg1.3.a \
+- ../lib/$(TKIMGVER)/libjpegtcl1.0.a \
+- ../lib/$(TKIMGVER)/libtkimgtiff1.3.a \
+- ../lib/$(TKIMGVER)/libtifftcl3.6.1.a \
+- ../lib/$(TKIMGVER)/libtkimgpng1.3.a \
+- ../lib/$(TKIMGVER)/libpngtcl1.2.6.a \
+- ../lib/$(TKIMGVER)/libtkimgppm1.3.a \
+- ../lib/$(TKIMGVER)/libtkimggif1.3.a \
+- ../lib/$(TKIMGVER)/libtkimgbmp1.3.a \
+- ../lib/$(TKIMGVER)/libtkimgxbm1.3.a \
+- ../lib/$(TKIMGVER)/libzlibtcl1.2.1.a \
+- ../lib/$(TKIMGVER)/libtkimg1.3.a \
+- ../lib/$(TKTABLEVER)/libTktable2.9.a \
+- ../lib/libfuntools.a \
+ ../lib/librice.a \
+ ../lib/libhcomp.a \
+ ../lib/libplio.a \
+- ../lib/libast.a \
+- ../lib/libast_err.a \
+- ../lib/libast_grf3d.a \
+- ../lib/libast_pal.a \
+- ../lib/libast_wcslib.a \
+ ../lib/libsaotk.a \
+- ../lib/libwcs.a \
+ ../lib/libsla.a \
+- ../lib/libzvfs.a \
+- ../lib/libzip.a \
+- ../lib/libz.a \
+- ../lib/libxpa.a \
+ ../lib/libiis.a \
+ ../lib/libcheckdns.a \
+- ../lib/libsignal_ext.a \
+- ../lib/libBLT24.a \
+- ../lib/libtk8.4.a \
+- ../lib/libtcl8.4.a
++ ../lib/libsignal_ext.a
+ endif
+
+ ifeq ($(OS),windows)
+@@ -178,12 +144,9 @@
+
+ all: ds9
+
+-ds9 : ds9Base ds9.zip
++ds9 : ds9Base
+ $(RM) $@
+- cp ds9Base ds9
+- strip ds9
+- cp ds9 ../bin/.
+- cp ds9.zip ../bin/.
++ cp ds9Base ../bin/ds9
+ cd ../bin; $(CODESIGN) -s "SAOImage DS9" ds9
+
+ debug : ds9Base ds9.zip
+@@ -199,14 +162,9 @@
+
+ all: ds9
+
+-ds9 : null.zip ds9Base $(FILES)
++ds9 : ds9Base $(FILES)
+ $(RM) $@
+- cp ds9Base ds9.zip
+- strip ds9.zip
+- cat null.zip >> ds9.zip
+- cd zipdir; zip -rA9 ../ds9.zip *
+- mv ds9.zip ds9
+- cp ds9 ../bin/.
++ cp ds9Base ../bin/ds9
+
+ debug : null.zip ds9Base $(FILES)
+ $(RM) $@
+@@ -377,6 +335,23 @@
+
+ #--------------------------linux
+
++# for gentoo: get rid of bundled libs
++ifneq (,$(findstring gentoo,$(ARCH)))
++ds9Base : $(OBJS) $(LIBS)
++ $(RM) $@
++ rm -f libstdc++.a
++ ln -s `$(CXX) -print-file-name=libstdc++.a` .
++ $(CXX) $(LDFLAGS) \
++ $(OBJS) $(LIBS) -o $@ \
++ -Wl,-Bstatic -L. -lstdc++ \
++ -Wl,-Bdynamic -L$(X11LIB) -lX11 \
++ -ldl -lpthread -lxml2 \
++ -ltk -ltcl -lBLT24 \
++ -lfuntools `pkg-config --libs wcstools` -lz \
++ `ast_link`
++ rm -f libstdc++.a
++endif
++
+ ifneq (,$(findstring linux,$(ARCH)))
+ ds9Base : $(OBJS) $(LIBS)
+ $(RM) $@