Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/lib2bit/, sci-libs/lib2bit/files/
Date: Fri, 31 Mar 2017 21:52:27
Message-Id: 1490997048.abdbf833db72c259f2585a30c592815575d4bd21.mmokrejs@gentoo
1 commit: abdbf833db72c259f2585a30c592815575d4bd21
2 Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Fri Mar 31 21:50:48 2017 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Fri Mar 31 21:50:48 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=abdbf833
7
8 sci-libs/lib2bit: improve ebuild to respect into /usr
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.1
11
12 sci-libs/lib2bit/files/lib2bit-0.2.1_respect_DESTDIR.patch | 2 +-
13 sci-libs/lib2bit/lib2bit-0.2.1.ebuild | 13 ++++++++++---
14 2 files changed, 11 insertions(+), 4 deletions(-)
15
16 diff --git a/sci-libs/lib2bit/files/lib2bit-0.2.1_respect_DESTDIR.patch b/sci-libs/lib2bit/files/lib2bit-0.2.1_respect_DESTDIR.patch
17 index cc0cbd536..0f64b325f 100644
18 --- a/sci-libs/lib2bit/files/lib2bit-0.2.1_respect_DESTDIR.patch
19 +++ b/sci-libs/lib2bit/files/lib2bit-0.2.1_respect_DESTDIR.patch
20 @@ -5,7 +5,7 @@
21 INCLUDES =
22
23 -prefix = /usr/local
24 -+prefix = ${DESTDIR}/usr/local
25 ++prefix = $(DESTDIR)/usr/local
26 includedir = $(prefix)/include
27 libdir = $(exec_prefix)/lib
28
29
30 diff --git a/sci-libs/lib2bit/lib2bit-0.2.1.ebuild b/sci-libs/lib2bit/lib2bit-0.2.1.ebuild
31 index a2029767d..c547dcca9 100644
32 --- a/sci-libs/lib2bit/lib2bit-0.2.1.ebuild
33 +++ b/sci-libs/lib2bit/lib2bit-0.2.1.ebuild
34 @@ -1,6 +1,5 @@
35 # Copyright 1999-2017 Gentoo Foundation
36 # Distributed under the terms of the GNU General Public License v2
37 -# $Id$
38
39 EAPI=6
40
41 @@ -13,12 +12,20 @@ SRC_URI="https://github.com/dpryan79/lib2bit/archive/0.2.1.tar.gz -> ${P}.tar.gz
42 LICENSE="MIT"
43 SLOT="0"
44 KEYWORDS="~amd64 ~x86"
45 -IUSE=""
46 +IUSE="static"
47
48 DEPEND=""
49 RDEPEND="${DEPEND}"
50
51 src_prepare(){
52 - epatch "${FILESDIR}"/${P}_respect_DESTDIR.patch
53 default
54 + epatch "${FILESDIR}"/${P}_respect_DESTDIR.patch
55 + sed -e 's#/usr/local#/usr#' -i Makefile || die
56 +}
57 +
58 +src_install(){
59 + emake DESTDIR="${ED}" install
60 + if not use static; then
61 + rm "${ED}"/usr/lib/lib2bit.a || die
62 + fi
63 }