/[gentoo-x86]/sys-apps/dmapi/dmapi-2.2.8.ebuild
Gentoo

Contents of /sys-apps/dmapi/dmapi-2.2.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Oct 11 09:51:00 2008 UTC (5 years, 11 months ago) by flameeyes
Branch: MAIN
Changes since 1.10: +2 -1 lines
Fix build dependencies.
(Portage version: 2.2_rc12/cvs/Linux 2.6.26-gentoo-r1 x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/dmapi/dmapi-2.2.8.ebuild,v 1.10 2008/01/10 18:19:22 jer Exp $
4
5 inherit eutils toolchain-funcs autotools
6
7 MY_P="${PN}_${PV}-1"
8 DESCRIPTION="XFS data management API library"
9 HOMEPAGE="http://oss.sgi.com/projects/xfs/"
10 SRC_URI="ftp://oss.sgi.com/projects/xfs/download/cmd_tars/${MY_P}.tar.gz"
11
12 LICENSE="LGPL-2.1"
13 SLOT="0"
14 KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 ~sparc x86"
15 IUSE=""
16
17 RDEPEND="sys-fs/xfsprogs"
18 DEPEND="${RDEPEND}"
19
20 src_unpack() {
21 unpack ${A}
22 cd "${S}"
23 epatch "${FILESDIR}"/${PN}-2.2.1-only-symlink-when-needed.patch
24 epatch "${FILESDIR}"/${PN}-2.2.8-LDFLAGS.patch
25 epatch "${FILESDIR}"/${PN}-2.2.8-symlinks.patch #180672
26 sed -i \
27 -e "/^PKG_DOC_DIR/s:@pkg_name@:${PF}:" \
28 include/builddefs.in \
29 || die "failed to update builddefs"
30 eautoconf
31 }
32
33 src_compile() {
34 export OPTIMIZER=${CFLAGS}
35 export DEBUG=-DNDEBUG
36
37 econf --libexecdir=/usr/$(get_libdir) || die
38 emake || die
39 }
40
41 src_install() {
42 emake DIST_ROOT="${D}" install install-dev || die
43 prepalldocs
44
45 # move shared libs to /
46 dodir /$(get_libdir)
47 mv "${D}"/usr/$(get_libdir)/libdm.so* "${D}"/$(get_libdir)/ || die
48 gen_usr_ldscript libdm.so
49 }

  ViewVC Help
Powered by ViewVC 1.1.20