diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-09-12 14:20:32 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-09-12 14:20:32 +0000 |
commit | 92d143381a7815ed7e814bec654cae41ea733fe0 (patch) | |
tree | 106a389ee844e1f5fc634e163d36107a2d81b963 /sci-biology | |
parent | Version bump, update HOMEPAGE and SRC_URI, use EAPI 2, make this respect LDFL... (diff) | |
download | gentoo-2-92d143381a7815ed7e814bec654cae41ea733fe0.tar.gz gentoo-2-92d143381a7815ed7e814bec654cae41ea733fe0.tar.bz2 gentoo-2-92d143381a7815ed7e814bec654cae41ea733fe0.zip |
Fix respect of FLAGS, 334951; do not install ELF in /usr/share, 296021
(Portage version: 2.2_rc79/cvs/Linux x86_64)
Diffstat (limited to 'sci-biology')
-rw-r--r-- | sci-biology/lagan/ChangeLog | 10 | ||||
-rw-r--r-- | sci-biology/lagan/files/lagan-2.0-flags.patch | 107 | ||||
-rw-r--r-- | sci-biology/lagan/lagan-2.0-r2.ebuild | 55 |
3 files changed, 170 insertions, 2 deletions
diff --git a/sci-biology/lagan/ChangeLog b/sci-biology/lagan/ChangeLog index 7222c8cba060..4e2f5330cc11 100644 --- a/sci-biology/lagan/ChangeLog +++ b/sci-biology/lagan/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-biology/lagan -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/lagan/ChangeLog,v 1.2 2009/07/21 08:12:46 weaver Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/lagan/ChangeLog,v 1.3 2010/09/12 14:20:31 jlec Exp $ + +*lagan-2.0-r2 (12 Sep 2010) + + 12 Sep 2010; Justin Lecher <jlec@gentoo.org> +lagan-2.0-r2.ebuild, + +files/lagan-2.0-flags.patch: + Fix respect of FLAGS, 334951; do not install ELF in /usr/share, 296021 *lagan-2.0-r1 (21 Jul 2009) diff --git a/sci-biology/lagan/files/lagan-2.0-flags.patch b/sci-biology/lagan/files/lagan-2.0-flags.patch new file mode 100644 index 000000000000..e324ef64c4c6 --- /dev/null +++ b/sci-biology/lagan/files/lagan-2.0-flags.patch @@ -0,0 +1,107 @@ +diff --git a/Makefile b/Makefile +index fbbbe79..a1d449b 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,5 +1,5 @@ + all: +- (cd src; $(MAKE)) ++ $(MAKE) -C src + clean: + rm -f chaos anchors order glocal utils/bin2bl mlagan utils/cstat utils/bin2mf utils/rc *~ utils/contigorder utils/getbounds utils/cextract utils/seqmerge utils/getlength utils/getoverlap utils/*~ utils/scorealign utils/scorecontigs mlagan.purify utils/getcontigpos utils/fa2xfa utils/Glue utils/dotplot utils/overlay + (cd src; $(MAKE) clean) +diff --git a/src/Makefile b/src/Makefile +index 7f6b6fd..dd6309b 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -4,51 +4,51 @@ CFLAGS = -O3 # -Wall -W + TRGT_DIR = .. + + all: ../anchors ../chaos ../order ../mlagan ../prolagan ../utils/bin2mf ../utils/bin2bl ../utils/cextract ../utils/cstat ../utils/contigorder ../utils/getbounds ../utils/getlength ../utils/getoverlap ../utils/rc ../utils/seqmerge ../utils/scorealign ../utils/scorecontigs ../utils/getcontigpos ../utils/fa2xfa ../utils/Glue ../utils/dotplot ../utils/overlay +- (cd glocal; $(MAKE)) ++ $(MAKE) -C glocal + clean: + rm -f *.o *~ utils/*~ mlagan.purify core + (cd glocal; $(MAKE) clean) + ../anchors: anchors.c skiplist.c +- $(CC) -o $(TRGT_DIR)/anchors anchors.c skiplist.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/anchors anchors.c skiplist.c + ../chaos: fchaos.c thrtrie.c skiplist.c global.c translate.c mempage.c filebuffer.c +- $(CC) -o $(TRGT_DIR)/chaos fchaos.c thrtrie.c skiplist.c global.c translate.c filebuffer.c -lm -DCHAOS__FLAG ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/chaos fchaos.c thrtrie.c skiplist.c global.c translate.c filebuffer.c -lm -DCHAOS__FLAG + ../order: order.c diagmatrix.c filebuffer.c +- $(CC) -o $(TRGT_DIR)/order order.c diagmatrix.c filebuffer.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/order order.c diagmatrix.c filebuffer.c + ../mlagan: mlagan.c diagmatrix.c multial.c skiplist.c filebuffer.c +- $(CC) -o $(TRGT_DIR)/mlagan mlagan.c multial.c diagmatrix.c skiplist.c filebuffer.c -lm -DMULTIAL__FLAG ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/mlagan mlagan.c multial.c diagmatrix.c skiplist.c filebuffer.c -lm -DMULTIAL__FLAG + ../prolagan: prolagan.c diagmatrix.c multial.c skiplist.c filebuffer.c +- $(CC) -o $(TRGT_DIR)/prolagan prolagan.c multial.c diagmatrix.c skiplist.c filebuffer.c -lm -DMULTIAL__FLAG ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/prolagan prolagan.c multial.c diagmatrix.c skiplist.c filebuffer.c -lm -DMULTIAL__FLAG + ../utils/bin2mf: utils/bin2mf.c +- $(CC) -o $(TRGT_DIR)/utils/bin2mf utils/bin2mf.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/bin2mf utils/bin2mf.c + ../utils/bin2bl: utils/bin2bl.c +- $(CC) -o $(TRGT_DIR)/utils/bin2bl utils/bin2bl.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/bin2bl utils/bin2bl.c + ../utils/cextract: utils/cextract.c +- $(CC) -o $(TRGT_DIR)/utils/cextract utils/cextract.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/cextract utils/cextract.c + ../utils/cstat: utils/cstat.c +- $(CC) -o $(TRGT_DIR)/utils/cstat utils/cstat.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/cstat utils/cstat.c + ../utils/contigorder: utils/contigorder.c +- $(CC) -o $(TRGT_DIR)/utils/contigorder utils/contigorder.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/contigorder utils/contigorder.c + ../utils/getbounds: utils/getbounds.c +- $(CC) -o $(TRGT_DIR)/utils/getbounds utils/getbounds.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/getbounds utils/getbounds.c + ../utils/getcontigpos: utils/getcontigpos.c +- $(CC) -o $(TRGT_DIR)/utils/getcontigpos utils/getcontigpos.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/getcontigpos utils/getcontigpos.c + ../utils/getlength: utils/getlength.c +- $(CC) -o $(TRGT_DIR)/utils/getlength utils/getlength.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/getlength utils/getlength.c + ../utils/getoverlap: utils/getoverlap.c +- $(CC) -o $(TRGT_DIR)/utils/getoverlap utils/getoverlap.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/getoverlap utils/getoverlap.c + ../utils/rc: utils/rc.c +- $(CC) -o $(TRGT_DIR)/utils/rc utils/rc.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/rc utils/rc.c + ../utils/seqmerge: utils/seqmerge.c +- $(CC) -o $(TRGT_DIR)/utils/seqmerge utils/seqmerge.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/seqmerge utils/seqmerge.c + ../utils/scorealign: utils/scorealign.c +- $(CC) -o $(TRGT_DIR)/utils/scorealign utils/scorealign.c -lm ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/scorealign utils/scorealign.c -lm + ../utils/scorecontigs: utils/scorecontigs.c +- $(CC) -o $(TRGT_DIR)/utils/scorecontigs utils/scorecontigs.c -lm ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/scorecontigs utils/scorecontigs.c -lm + ../utils/fa2xfa: utils/fa2xfa.c +- $(CC) -o $(TRGT_DIR)/utils/fa2xfa utils/fa2xfa.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/fa2xfa utils/fa2xfa.c + ../utils/overlay: utils/overlay.c +- $(CC) -o $(TRGT_DIR)/utils/overlay utils/overlay.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/overlay utils/overlay.c + ../utils/Glue: utils/Glue.cpp +- $(CPP) -o $(TRGT_DIR)/utils/Glue utils/Glue.cpp ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/Glue utils/Glue.cpp + ../utils/dotplot: utils/dotplot.cpp +- $(CPP) -o $(TRGT_DIR)/utils/dotplot utils/dotplot.cpp ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(TRGT_DIR)/utils/dotplot utils/dotplot.cpp +diff --git a/src/glocal/Makefile b/src/glocal/Makefile +index ce1421a..b82507f 100755 +--- a/src/glocal/Makefile ++++ b/src/glocal/Makefile +@@ -10,10 +10,10 @@ TRGT = glocal + OBJECTS = glocal.o io.o rightinfluence.o leftinfluence.o score.o + + .cpp.o: +- $(CC) -Wno-deprecated $(CFLAGS) $(INCDIR) -c $*.cpp ++ $(CXX) $(CXXFLAGS) $(INCDIR) -c $*.cpp + + $(TRGT): $(OBJECTS) +- $(CLINKER) $(OPTFLAGS) $(OBJECTS) -o $(TRGT_DIR)/$(TRGT) $(MLIB) ++ $(CXX) $(LDFLAGS) $(OBJECTS) -o $(TRGT_DIR)/$(TRGT) $(MLIB) + + clean : + rm -f *.o ./*~ *~ core diff --git a/sci-biology/lagan/lagan-2.0-r2.ebuild b/sci-biology/lagan/lagan-2.0-r2.ebuild new file mode 100644 index 000000000000..91afb6aab729 --- /dev/null +++ b/sci-biology/lagan/lagan-2.0-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/lagan/lagan-2.0-r2.ebuild,v 1.1 2010/09/12 14:20:31 jlec Exp $ + +EAPI="2" + +inherit eutils multilib toolchain-funcs + +MY_P="lagan20" + +DESCRIPTION="LAGAN, Multi-LAGAN, Shuffle-LAGAN, Supermap: Whole-genome multiple alignment of genomic DNA" +HOMEPAGE="http://lagan.stanford.edu/lagan_web/index.shtml" +SRC_URI="http://lagan.stanford.edu/lagan_web/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" +KEYWORDS="~amd64 ~x86" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + sed -i "/use Getopt::Long;/ i use lib \"/usr/$(get_libdir)/${PN}/lib\";" "${S}/supermap.pl" || die + # NB: Testing with glibc-2.10 has uncovered a bug in src/utils/Sequence.h where libc getline is erroneously used instead of own getline + sed -i 's/getline/my_getline/' "${S}"/src/{anchors.c,glocal/io.cpp} || die + epatch "${FILESDIR}"/${P}-*.patch +} + +src_compile() { + emake \ + CC=$(tc-getCC) \ + CXX=$(tc-getCXX) \ + CXXFLAGS="${CXXFLAGS}" \ + CFLAGS="${CFLAGS}" +} + +src_install() { + newbin lagan.pl lagan || die + newbin slagan.pl slagan || die + dobin mlagan || die + rm lagan.pl slagan.pl utils/Utils.pm + + insinto /usr/$(get_libdir)/${PN}/lib + doins Utils.pm || die + exeinto /usr/$(get_libdir)/${PN}/utils + doexe utils/* || die + exeinto /usr/$(get_libdir)/${PN} + doexe *.pl anchors chaos glocal order prolagan || die + insinto /usr/$(get_libdir)/${PN} + doins *.txt || die + dosym /usr/$(get_libdir)/${PN}/supermap.pl /usr/bin/supermap + echo "LAGAN_DIR=\"/usr/$(get_libdir)/${PN}\"" > ${S}/99${PN} + doenvd "${S}/99${PN}" || die + dodoc Readmes/README.* || die +} |