/[gentoo-x86]/sci-libs/liborigin/liborigin-20070821.ebuild
Gentoo

Contents of /sci-libs/liborigin/liborigin-20070821.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Thu Mar 6 23:13:06 2008 UTC (12 years, 8 months ago) by bicatali
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump and removed older ones
(Portage version: 2.1.4.4)

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

  ViewVC Help
Powered by ViewVC 1.1.20