diff options
author | Cédric Krier <cedk@gentoo.org> | 2006-09-23 18:54:49 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2006-09-23 18:54:49 +0000 |
commit | d671aa412424bcbfcad132594907e47670a6bb3f (patch) | |
tree | 258d89b6206e375d85df1ffe7dd2b006ee0fbf47 /sci-astronomy | |
parent | net-p2p/museek+: misc ebuild cleanups, please take a look (diff) | |
download | sunrise-reviewed-d671aa412424bcbfcad132594907e47670a6bb3f.tar.gz sunrise-reviewed-d671aa412424bcbfcad132594907e47670a6bb3f.tar.bz2 sunrise-reviewed-d671aa412424bcbfcad132594907e47670a6bb3f.zip |
sci-astronomy/.: New ebuild for bug 148822
svn path=/sunrise/; revision=1312
Diffstat (limited to 'sci-astronomy')
-rw-r--r-- | sci-astronomy/midas/ChangeLog | 8 | ||||
-rw-r--r-- | sci-astronomy/midas/Manifest | 20 | ||||
-rw-r--r-- | sci-astronomy/midas/files/digest-midas-20060904 | 3 | ||||
-rw-r--r-- | sci-astronomy/midas/files/midas-20060904-compile.patch | 72 | ||||
-rw-r--r-- | sci-astronomy/midas/metadata.xml | 5 | ||||
-rw-r--r-- | sci-astronomy/midas/midas-20060904.ebuild | 166 |
6 files changed, 274 insertions, 0 deletions
diff --git a/sci-astronomy/midas/ChangeLog b/sci-astronomy/midas/ChangeLog new file mode 100644 index 000000000..276663743 --- /dev/null +++ b/sci-astronomy/midas/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for sci-astronomy/midas +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 23 Sep 2006; Cedric Krier <ced@ced.homedns.org> +midas-20060904.ebuild, + +files/midas-20060904-compile.patch, +metadata.xml: + New ebuild for bug 148822 + diff --git a/sci-astronomy/midas/Manifest b/sci-astronomy/midas/Manifest new file mode 100644 index 000000000..43c5ca9cf --- /dev/null +++ b/sci-astronomy/midas/Manifest @@ -0,0 +1,20 @@ +AUX midas-20060904-compile.patch 2008 RMD160 27a99467aa24e39bcf576b4f46020f8e14e596bf SHA1 1a74ffbfd493395cd7502564e440cd0daf04624c SHA256 32e169ff567b332205fb2dacf06223b133f607ec728ecbf65bcfc58368288edb +MD5 c298e493158b61fc2190f9c3e2b733b1 files/midas-20060904-compile.patch 2008 +RMD160 27a99467aa24e39bcf576b4f46020f8e14e596bf files/midas-20060904-compile.patch 2008 +SHA256 32e169ff567b332205fb2dacf06223b133f607ec728ecbf65bcfc58368288edb files/midas-20060904-compile.patch 2008 +DIST 06SEPpl1.0.tar.gz 27741754 RMD160 951259c4221abc8b59562554afa77895f575aa42 SHA1 629de81644578ee750e988474f61fa1f630adf0d SHA256 fd86b81c0398cddad393545e5454bc1da3dfcdd083788acc0c692745dad6a845 +EBUILD midas-20060904.ebuild 4769 RMD160 f241f6dba2229d0dda96a66906f128a39f166df0 SHA1 5b869eecc64b16dbcc7dceb870b69552d4436c0d SHA256 cc1a5b78f818dd7532e0569857dd5cd206c7322c009ad104f7b0838e325ba595 +MD5 00a42917cd8333afe3ad84a1dfd52777 midas-20060904.ebuild 4769 +RMD160 f241f6dba2229d0dda96a66906f128a39f166df0 midas-20060904.ebuild 4769 +SHA256 cc1a5b78f818dd7532e0569857dd5cd206c7322c009ad104f7b0838e325ba595 midas-20060904.ebuild 4769 +MISC ChangeLog 277 RMD160 a07d0bbdeae9e601acfc60be1126d6ccba98741b SHA1 fb92340c83d53f0d113297a5e81da7ddea74c4d9 SHA256 709f0425512e7303cebc8144fe3a3911d62691ff173fb7df961469947f79f97b +MD5 efe23c1f25b7c79b6693bbd0d2cc8b5a ChangeLog 277 +RMD160 a07d0bbdeae9e601acfc60be1126d6ccba98741b ChangeLog 277 +SHA256 709f0425512e7303cebc8144fe3a3911d62691ff173fb7df961469947f79f97b ChangeLog 277 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 +MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170 +RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170 +SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata.xml 170 +MD5 c6e4a07ae19a09747165237715506836 files/digest-midas-20060904 238 +RMD160 8a34c84107c22c66f7b7106e2cd61a3e8b6cc951 files/digest-midas-20060904 238 +SHA256 02ef85c53df8a62186befaedd3cad0e9dc88f76e0e345e46f9e3b1f417a4e233 files/digest-midas-20060904 238 diff --git a/sci-astronomy/midas/files/digest-midas-20060904 b/sci-astronomy/midas/files/digest-midas-20060904 new file mode 100644 index 000000000..d77551a98 --- /dev/null +++ b/sci-astronomy/midas/files/digest-midas-20060904 @@ -0,0 +1,3 @@ +MD5 62ab8e3eeab28887397723fe1767953d 06SEPpl1.0.tar.gz 27741754 +RMD160 951259c4221abc8b59562554afa77895f575aa42 06SEPpl1.0.tar.gz 27741754 +SHA256 fd86b81c0398cddad393545e5454bc1da3dfcdd083788acc0c692745dad6a845 06SEPpl1.0.tar.gz 27741754 diff --git a/sci-astronomy/midas/files/midas-20060904-compile.patch b/sci-astronomy/midas/files/midas-20060904-compile.patch new file mode 100644 index 000000000..551f8c8de --- /dev/null +++ b/sci-astronomy/midas/files/midas-20060904-compile.patch @@ -0,0 +1,72 @@ +diff -ru 06SEPpl1.0~/install/unix/autoconfig 06SEPpl1.0/install/unix/autoconfig +--- 06SEPpl1.0~/install/unix/autoconfig 2006-09-20 15:13:04.000000000 +0200 ++++ 06SEPpl1.0/install/unix/autoconfig 2006-09-20 16:39:57.000000000 +0200 +@@ -24,7 +24,7 @@ + echo="echo -n" + fi + +-clear ++#clear + + cd `echo $0 | sed -e 's/[^\/]*$//' -e 's/^$/./' -e 's/\/$//'` + MID_INSTALL=`pwd` +@@ -54,14 +54,14 @@ + echo "********** DATE: `date`" + echo "" + +-$echo "Do you want to continue [yn]? (y): " $SV_NONL +-read answ +-if [ -z "$answ" ]; then +- answ="y" +-fi +-if [ "$answ" = "n" -o "$answ" = "N" ]; then +- exit 1 +-fi ++#$echo "Do you want to continue [yn]? (y): " $SV_NONL ++#read answ ++#if [ -z "$answ" ]; then ++# answ="y" ++#fi ++#if [ "$answ" = "n" -o "$answ" = "N" ]; then ++# exit 1 ++#fi + + /bin/sh $MID_INSTALL/select all + /bin/sh $MID_INSTALL/preinstall -a +diff -ru 06SEPpl1.0~/install/unix/install1 06SEPpl1.0/install/unix/install1 +--- 06SEPpl1.0~/install/unix/install1 2006-09-20 15:13:04.000000000 +0200 ++++ 06SEPpl1.0/install/unix/install1 2006-09-20 16:40:09.000000000 +0200 +@@ -52,7 +52,7 @@ + PATH=$PATH:$MID_INSTALL + export MIDASHOME MIDVERS MID_HOME MID_INSTALL + +-clear ++#clear + + if [ ! -f "$MID_HOME/local/default.mk" ] ; then + echo "*** ERROR: File <$MID_HOME/local/default.mk> does not exist." +@@ -911,13 +911,14 @@ + mkdir $MID_HOME/tmp + fi + +-time /bin/sh $MID_INSTALL/install -i > $MID_HOME/tmp/install.$$ 2>&1 & +-echo "Running install in background" +-echo "Results are coming in $MID_HOME/tmp/install.$$" +-if [ "$1" = "-a" ]; then +- $echo "Waiting for MIDAS installation to finish..." $SV_NONL +- wait +- echo "Finished." +- echo "" +-fi +-exit 0 ++#time /bin/sh $MID_INSTALL/install -i > $MID_HOME/tmp/install.$$ 2>&1 & ++#echo "Running install in background" ++#echo "Results are coming in $MID_HOME/tmp/install.$$" ++#if [ "$1" = "-a" ]; then ++# $echo "Waiting for MIDAS installation to finish..." $SV_NONL ++# wait ++# echo "Finished." ++# echo "" ++#fi ++#exit 0 ++/bin/sh $MID_INSTALL/install -i diff --git a/sci-astronomy/midas/metadata.xml b/sci-astronomy/midas/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/sci-astronomy/midas/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>maintainer-wanted</herd> +</pkgmetadata> diff --git a/sci-astronomy/midas/midas-20060904.ebuild b/sci-astronomy/midas/midas-20060904.ebuild new file mode 100644 index 000000000..b61b512eb --- /dev/null +++ b/sci-astronomy/midas/midas-20060904.ebuild @@ -0,0 +1,166 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils toolchain-funcs flag-o-matic + +MY_PV=06SEPpl1.0 + +DESCRIPTION="general tools for image processing and data reduction with emphasis +on astronomical applications" +HOMEPAGE="http://www.eso.org/projects/esomidas/" +SRC_URI="ftp://ftphost.hq.eso.org/pub/midaspub/${MY_PV%pl*}/sources/${MY_PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="x11-libs/libXt + x11-libs/libX11 + x11-libs/openmotif + sys-libs/ncurses + sys-libs/readline" +RDEPEND="${DEPEND} + x11-apps/xwininfo" + +S=${WORKDIR}/${MY_PV} + +src_unpack() { + unpack $A + cd "${S}" + epatch "${FILESDIR}/${P}-compile.patch" +} + +src_compile() { + cd "${S}/install/unix" + + # this flags failed @@ veriall + filter-flags -O3 -O2 + + sed -i \ + -e "s/^\(CC =\).*/\1 $(tc-getCC)/" \ + -e "s/^\(LDCC =\).*/\1 $(tc-getCC)/" \ + -e "s/^\(F77 =\).*/\1 $(tc-getF77)/" \ + -e "s/^\(LD77_CMD =\).*/\1 $(tc-getF77)/" \ + -e "s/^\(RANLIB =\).*/\1 $(tc-getRANLIB)/" \ + -e "s/^\(AR =\).*/\1 $(tc-getAR)/" \ + -e "s/^\(C_OPT =\).*/\1 ${CFLAGS}/" \ + -e "s/^\(F_OPT =\).*/\1 ${F77FLAGS}/" \ + -e "s/^\(STRIP =\).*/\1 true/" \ + default_mk || die "sed failed" + sed -i \ + -e "s/^\(F77=\).*/\1 $(tc-getF77)/" \ + -e "s/^\(LD77_CMD=\).*/\1 $(tc-getF77)/" \ + -e "s/^\(C_OPT=\).*/\1 ${CFLAGS}/" \ + -e "s/^\(F_OPT=\).*/\1 ${F77FLAGS}/" \ + -e "s/^\(SLIB=\).*/\1/" \ + systems/Linux{,_alpha,_AMD64}/make_options || die "sed failed" + + ./autoconfig + + sed -i \ + -e "s#^\(MIDASHOME0=\).*#\1/usr/share/${PN}#" \ + "${S}"/system/unix/{drs,helpmidas,inmidas} || die "sed failed" +} + +src_install() { + exeinto /usr/share/${PN}/${MY_PV}/system/unix + insinto /usr/share/${PN}/${MY_PV}/system/unix + doexe "${S}"/system/unix/{nmgrep,inmidas,gomidas,add_sccs,helpmidas,originator} + doexe "${S}"/system/unix/{environment,patchlevel,cleanmidas,make_midfile,drs,ld77} + for i in inmidas gomidas helpmidas; do + dosym /usr/share/${PN}/${MY_PV}/system/unix/${i} /usr/bin/${i} + done + + for dir in system prim applic stdred gui util; do + exeinto /usr/share/${PN}/${MY_PV}/${dir}/exec + doexe "${S}"/${dir}/exec/*.exe + done + + for dir in prim applic stdred contrib gui; do + insinto /usr/share/${PN}/${MY_PV}/${dir}/proc + for i in "${S}"/${dir}/proc/*.{prg,cod,prg_o,sh}; do + [ -f ${i} ] && doins ${i} + done + done + + for dir in prim applic util; do + insinto /usr/share/${PN}/${MY_PV}/${dir}/help + for i in "${S}"/${dir}/help/*.{hlc,hlq,alq,hlz,txt}; do + [ -f ${i} ] && doins ${i} + done + done + + for dir in astromet cloud daophot esolv geotest imres invent iue lyman mva \ + pepsys romafot surfphot template tsa wavelet; do + insinto /usr/share/${PN}/${MY_PV}/contrib/${dir}/help + for i in "${S}"/contrib/${dir}/help/*.{hlc,hlq,alq,hlz,txt}; do + [ -f ${i} ] && doins ${i} + done + done + + for dir in XAlice XBatch XDo XEchelle XFilter XIdent XIrspec XLong; do + insinto /usr/share/${PN}/${MY_PV}/gui/${dir}/help + for i in "${S}"/gui/${dir}/help/*.{hlc,hlq,alq,hlz,txt}; do + [ -f ${i} ] && doins ${i} + done + done + + for dir in ccdred ccdtest do echelle feros irac2 irspec long mos optopus \ + pisco qc spec; do + insinto /usr/share/${PN}/${MY_PV}/stdred/${dir}/help + for i in "${S}"/stdred/${dir}/help/*.{hlc,hlq,alq,hlz,txt}; do + [ -f ${i} ] && doins ${i} + done + done + + exeinto /usr/share/${PN}/${MY_PV}/system/exec + insinto /usr/share/${PN}/${MY_PV}/system/exec + doexe system/exec/{crea_{alll,hlq},ftoc_{nam,noop,params},hlqtohlc} + doins system/exec/*.sh + + dolib "${S}"/lib/*.so* + + exeinto /usr/share/${PN}/${MY_PV}/monit + insinto /usr/share/${PN}/${MY_PV}/monit + doexe "${S}"/monit/*.exe + doexe "${S}"/monit/calib_build + doins "${S}"/monit/*.{sh,bin} + doins "${S}"/monit/{syskeys.unix,xnews.txt,FORGRdrs.KEY} + + insinto /usr/share/${PN}/${MY_PV}/outside + doins "${S}"/outside/{outside_setup,pixcheck,rdscr} + + insinto /usr/share/${PN}/${MY_PV}/prim/proc + doins "${S}"/prim/proc/compile.all + + insinto /usr/share/${PN}/${MY_PV}/prim/proc/pipeline + doins "${S}"/prim/proc/pipeline/*.{prg,sh,bconnect,control,start,txt} + + insinto /usr/share/${PN}/${MY_PV}/prim/proc/setup + doins "${S}"/prim/proc/setup/*.prg + + insinto /usr/share/${PN}/${MY_PV}/systab + doins -r "${S}"/systab/* + + insinto /usr/share/${PN}/${MY_PV}/test/prim + doins "${S}"/test/prim/*.{mt,fits,tfits,ffits,dat,fmt,asc,prg,ctx} + + insinto /usr/share/${PN}/${MY_PV}/test/fits + doins "${S}"/test/fits/*.{mt,dat,prg} + + insinto /usr/share/${PN}/${MY_PV}/incl + doins "${S}"/incl/*.dat + + insinto /usr/share/${PN}/${MY_PV}/context + doins "${S}"/context/*.ctx + + insinto /usr/share/${PN}/${MY_PV}/gui/resource + doins "${S}"/gui/resource/* + + insinto /usr/share/${PN}/${MY_PV} + doins -r "${S}"/systab + + doman "${S}"/system/unix/man1/{gomidas,helpmidas,inmidas}.1 +} |