Gentoo Archives: gentoo-commits

From: "Jonathan Callen (abcd)" <abcd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/schroot: ChangeLog metadata.xml schroot-1.2.3.ebuild
Date: Fri, 11 Sep 2009 07:16:32
Message-Id: E1Mm0Mw-00012H-8g@stork.gentoo.org
1 abcd 09/09/11 07:16:30
2
3 Added: ChangeLog metadata.xml schroot-1.2.3.ebuild
4 Log:
5 New ebuild. Thanks to Nick Fortino <nfortino@×××××.com> for initial ebuild and patches (bug #257334).
6 (Portage version: -svn/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 dev-util/schroot/ChangeLog
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/schroot/ChangeLog?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/schroot/ChangeLog?rev=1.1&content-type=text/plain
13
14 Index: ChangeLog
15 ===================================================================
16 # ChangeLog for dev-util/schroot
17 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
18 # $Header: /var/cvsroot/gentoo-x86/dev-util/schroot/ChangeLog,v 1.1 2009/09/11 07:16:29 abcd Exp $
19
20 *schroot-1.2.3 (11 Sep 2009)
21
22 11 Sep 2009; Jonathan Callen <abcd@g.o> +schroot-1.2.3.ebuild,
23 +files/schroot-1.2.3-autotools.patch, +files/schroot-1.2.3-pam.patch,
24 +files/schroot-1.2.3-tests.patch, +files/schroot.confd,
25 +files/schroot.initd, +metadata.xml:
26 New ebuild. Thanks to Nick Fortino <nfortino@×××××.com> for initial ebuild
27 and patches (bug #257334).
28
29
30
31
32 1.1 dev-util/schroot/metadata.xml
33
34 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/schroot/metadata.xml?rev=1.1&view=markup
35 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/schroot/metadata.xml?rev=1.1&content-type=text/plain
36
37 Index: metadata.xml
38 ===================================================================
39 <?xml version="1.0" encoding="UTF-8"?>
40 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
41 <pkgmetadata>
42 <herd>no-herd</herd>
43 <maintainer>
44 <email>abcd@g.o</email>
45 <name>Jonathan Callen</name>
46 </maintainer>
47 <use>
48 <flag name="dchroot">Enables the building of a wrapper named "dchroot", replacing <pkg>dev-util/dchroot</pkg>.</flag>
49 </use>
50 </pkgmetadata>
51
52
53
54 1.1 dev-util/schroot/schroot-1.2.3.ebuild
55
56 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/schroot/schroot-1.2.3.ebuild?rev=1.1&view=markup
57 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/schroot/schroot-1.2.3.ebuild?rev=1.1&content-type=text/plain
58
59 Index: schroot-1.2.3.ebuild
60 ===================================================================
61 # Copyright 1999-2009 Gentoo Foundation
62 # Distributed under the terms of the GNU General Public License v2
63 # $Header: /var/cvsroot/gentoo-x86/dev-util/schroot/schroot-1.2.3.ebuild,v 1.1 2009/09/11 07:16:29 abcd Exp $
64
65 EAPI="2"
66
67 inherit autotools base
68
69 DESCRIPTION="Utility to execute commands in a chroot environment"
70 HOMEPAGE="http://packages.debian.org/source/sid/schroot"
71 SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.gz"
72
73 LICENSE="GPL-3"
74 SLOT="0"
75 KEYWORDS="~x86"
76 IUSE="+dchroot debug doc nls test"
77
78 COMMON_DEPEND="
79 >=dev-libs/boost-1.34.0
80 dev-libs/lockdev
81 sys-libs/pam
82 "
83
84 DEPEND="${COMMON_DEPEND}
85 nls? ( sys-devel/gettext )
86 test? ( >=dev-util/cppunit-1.10.0 )
87 "
88 RDEPEND="${COMMON_DEPEND}
89 dchroot? ( !dev-util/dchroot )
90 nls? ( virtual/libintl )
91 "
92
93 PATCHES=(
94 "${FILESDIR}/${P}-autotools.patch"
95 "${FILESDIR}/${P}-tests.patch"
96 )
97
98 src_prepare() {
99 base_src_prepare
100
101 if use test; then
102 # Fix bug where aclocal doesn't find cppunit.m4 from the system...
103 ln -s /usr/share/aclocal/cppunit.m4 m4/
104 export AT_M4DIR=m4
105 else
106 # Don't depend on cppunit unless we are testing
107 sed -i '/AM_PATH_CPPUNIT/d' configure.ac
108 fi
109
110 eautoreconf
111 }
112
113 src_configure() {
114 econf \
115 $(use_enable dchroot) \
116 $(use_enable dchroot dchroot-dsa) \
117 $(use_enable debug) \
118 $(use_enable nls) \
119 --enable-shared \
120 --disable-static \
121 --localstatedir=/var
122 }
123
124 src_install() {
125 emake DESTDIR="${D}" install || die "emake install failed"
126
127 newinitd "${FILESDIR}"/schroot.initd schroot || die "installation of init.d script failed"
128 newconfd "${FILESDIR}"/schroot.confd schroot || die "installation of conf.d file failed"
129
130 dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die "installation of docs failed"
131 if use doc; then
132 insinto /usr/share/doc/${PF}/html/sbuild
133 doins doc/sbuild/html/* || die "installation of html docs failed"
134 insinto /usr/share/doc/${PF}/html/schroot
135 doins doc/schroot/html/* || die "installation of html docs failed"
136 fi
137 }