blob: d3badb20e88c51ec0373bb82b16f9cfe19354b2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/liborigin/liborigin-20070821.ebuild,v 1.2 2007/10/14 20:44:43 je_fro Exp $
inherit multilib
MY_P=${PN}-${PV:0:4}-${PV:4:2}-${PV:6:2}
DESCRIPTION="A library for reading OriginLab OPJ project files"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
HOMEPAGE="http://sourceforge.net/projects/liborigin/"
LICENSE="GPL-2"
KEYWORDS="~x86 ~amd64"
SLOT="0"
IUSE=""
DEPEND="!<sci-visualization/labplot-1.5.1.6"
RESTRICT="test"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
# CC is defined as a C++ compiler in the Makefile
sed -i \
-e '/^CC.*=/d' \
-e 's/CC/CXX/g' \
-e 's/CFLAGS.*=/CXXFLAGS +=/' \
-e 's/CFLAGS/CXXFLAGS/g' \
-e '/ldconfig/d' \
-e "s/mkdir -p lib/mkdir -p $(get_libdir)/g" \
-e "s/\`.\/lib-arch.sh\`/$(get_libdir)/g" \
-e "s/lib\//$(get_libdir)\//g" \
"${S}"/Makefile.LINUX \
|| die "sed Makefile failed"
}
src_compile() {
emake -j1 LIBEXT=$(get_libdir) || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc README FORMAT || die "dodoc failed"
}
|