summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2010-01-31 11:45:42 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2010-01-31 11:45:42 +0000
commite132b609f690fd2f8b8ea2794815828a8f7c953a (patch)
tree5bee3222a8beb0e08773cbbce157bbb75a8ab372 /net-misc/sambascanner
parentsunrise/ profiles/package.mask: Masking mandvd for removal (diff)
downloadsunrise-e132b609f690fd2f8b8ea2794815828a8f7c953a.tar.gz
sunrise-e132b609f690fd2f8b8ea2794815828a8f7c953a.tar.bz2
sunrise-e132b609f690fd2f8b8ea2794815828a8f7c953a.zip
net-misc/sambascanner: Migrate to EAPI2 in order to replace deprecated built_with_use calls
svn path=/sunrise/; revision=9942
Diffstat (limited to 'net-misc/sambascanner')
-rw-r--r--net-misc/sambascanner/ChangeLog6
-rw-r--r--net-misc/sambascanner/Manifest4
-rw-r--r--net-misc/sambascanner/sambascanner-0.22.ebuild17
3 files changed, 16 insertions, 11 deletions
diff --git a/net-misc/sambascanner/ChangeLog b/net-misc/sambascanner/ChangeLog
index 9a9adaed3..c431aa8f5 100644
--- a/net-misc/sambascanner/ChangeLog
+++ b/net-misc/sambascanner/ChangeLog
@@ -1,7 +1,11 @@
# ChangeLog for net-misc/sambascanner
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 31 Jan 2010; Markos Chandras <hwoarang@gentoo.org>
+ sambascanner-0.22.ebuild:
+ Migrate to EAPI2 in order to replace deprecated built_with_use calls
+
16 May 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org>
sambascanner-0.22.ebuild:
econf needs no die
diff --git a/net-misc/sambascanner/Manifest b/net-misc/sambascanner/Manifest
index 1273f99cf..9c6f81c34 100644
--- a/net-misc/sambascanner/Manifest
+++ b/net-misc/sambascanner/Manifest
@@ -1,4 +1,4 @@
DIST SambaScanner-0.22.tar.bz2 217026 RMD160 a35a4b9f54b6db6650ec0ae5e64598dd3ad5b429 SHA1 b513c070744b99ed0ef04778567c8f07cafc0138 SHA256 748c867a6be26185f7430a2ac10a08016b95fc7e0f1b831616e64a42c29b1387
-EBUILD sambascanner-0.22.ebuild 1245 RMD160 90f923e75c9ef9ffa095a99ba1ddca9a9ae9832e SHA1 cbb3be431e50935c9988ffc93c15742f74ea81a2 SHA256 d33e4e2d4611e593477a3dbbc6910a8c007db427093359c99139dea0271828b0
-MISC ChangeLog 1148 RMD160 1005b0b8e418289aa42ab3c8d3bb6eabe5bd6551 SHA1 439c93061eabfb0ecb4b919819db9c78b1bb6948 SHA256 29cab3d2f7ad956a0aa067b76f71730f22fbcff6264b60275c9eb88e94d287b6
+EBUILD sambascanner-0.22.ebuild 1164 RMD160 f3daccfaffaed34982ece7c5eb4ac5d67445e83c SHA1 3b15ab62d691e3feac21d0c8c9db4584cba1cd4b SHA256 f2af0a2b706dc47ae89f5a54887597755e9cca463d8c9680370b0d58f64c9c8a
+MISC ChangeLog 1301 RMD160 8ebbf03ec607abb7aa30f9cbd5f49ab755e745b6 SHA1 9692deae668b19090c7944f086dee3fe1f1e6e02 SHA256 896daccec6251e2342920cffb321d92c5bc0f0836dbbce0ee8c6e978c2230c83
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/net-misc/sambascanner/sambascanner-0.22.ebuild b/net-misc/sambascanner/sambascanner-0.22.ebuild
index 8ec62aba6..f66344562 100644
--- a/net-misc/sambascanner/sambascanner-0.22.ebuild
+++ b/net-misc/sambascanner/sambascanner-0.22.ebuild
@@ -1,7 +1,9 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+EAPI="2"
+
inherit autotools eutils toolchain-funcs
MY_P="SambaScanner-${PV}"
@@ -16,16 +18,12 @@ IUSE="debug linguas_de"
RDEPEND=">=net-fs/samba-3"
DEPEND="${RDEPEND}
+ sys-libs/glibc[nptl]
sys-devel/gettext"
S=${WORKDIR}/${MY_P}
-src_unpack() {
- if ! built_with_use --missing true sys-libs/glibc nptl; then
- die "Sambascanner requires an NPTL system"
- fi
- unpack ${A}
- cd "${S}"
+src_prepare() {
if use debug; then
#prevent configure from completely replacing our CFLAGS
sed 's:CFLAGS="-O0 -g -pthread":CFLAGS="${CFLAGS} -g -pthread":' -i configure.ac
@@ -33,8 +31,11 @@ src_unpack() {
fi
}
-src_compile() {
+src_configure() {
econf CFLAGS="${CFLAGS} -pthread" $(use_enable debug)
+}
+
+src_compile() {
emake CC=$(tc-getCC) || die "emake failed"
}