summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kahle <tomka@gentoo.org>2015-03-08 15:18:28 +0000
committerThomas Kahle <tomka@gentoo.org>2015-03-08 15:18:28 +0000
commite8569aaedf40506602e28ec55916251735af952d (patch)
treee10011daeb463650d497af1bf1fd3b67021f6ad0 /sci-libs
parentMask xfce-base/xfce4-settings[libinput] because of missing deps, bug #542570. (diff)
downloadgentoo-2-e8569aaedf40506602e28ec55916251735af952d.tar.gz
gentoo-2-e8569aaedf40506602e28ec55916251735af952d.tar.bz2
gentoo-2-e8569aaedf40506602e28ec55916251735af952d.zip
Bump to 051
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 565C32BC)
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/lrslib/ChangeLog10
-rw-r--r--sci-libs/lrslib/lrslib-051.ebuild45
2 files changed, 52 insertions, 3 deletions
diff --git a/sci-libs/lrslib/ChangeLog b/sci-libs/lrslib/ChangeLog
index 1e977705732e..7a006f3b5c03 100644
--- a/sci-libs/lrslib/ChangeLog
+++ b/sci-libs/lrslib/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-libs/lrslib
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/lrslib/ChangeLog,v 1.9 2012/03/24 17:23:18 phajdan.jr Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/lrslib/ChangeLog,v 1.10 2015/03/08 15:18:28 tomka Exp $
+
+*lrslib-051 (08 Mar 2015)
+
+ 08 Mar 2015; Thomas Kahle <tomka@gentoo.org> +lrslib-051.ebuild:
+ Bump to 051
24 Mar 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> lrslib-042c-r2.ebuild:
x86 stable wrt bug #408085
@@ -37,4 +42,3 @@
12 Nov 2010; Thomas Kahle <tomka@gentoo.org> +lrslib-042c.ebuild,
+metadata.xml:
Initial import from science overlay. Fixes bug 338685
-
diff --git a/sci-libs/lrslib/lrslib-051.ebuild b/sci-libs/lrslib/lrslib-051.ebuild
new file mode 100644
index 000000000000..968878a9a8b3
--- /dev/null
+++ b/sci-libs/lrslib/lrslib-051.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/lrslib/lrslib-051.ebuild,v 1.1 2015/03/08 15:18:28 tomka Exp $
+
+EAPI=5
+
+inherit toolchain-funcs
+
+DESCRIPTION="self-contained ANSI C implementation of the reverse search algorithm"
+HOMEPAGE="http://cgm.cs.mcgill.ca/~avis/C/lrs.html"
+SRC_URI="http://cgm.cs.mcgill.ca/~avis/C/lrslib/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gmp"
+
+DEPEND="gmp? ( dev-libs/gmp )"
+RDEPEND="${DEPEND}"
+
+src_prepare(){
+ sed -i "s/gcc/$(tc-getCC)/g" makefile || die
+ sed -i "s/-O3/${CFLAGS} ${LDFLAGS}/g" makefile || die
+ # Prefix for install
+ sed -i "s,/usr/local,/usr,g" makefile || die
+}
+
+src_compile () {
+ if use gmp ; then
+ emake all
+ emake all-shared
+ else
+ emake allmp
+ fi
+}
+
+src_install() {
+ dodoc readme
+ # Library
+ if use gmp ; then
+ emake DESTDIR="${D}" install-shared
+ fi
+ # Install default set of binaries
+ emake DESTDIR="${D}" install-common
+}