From 1c6a5a37e50b60e6a2088111225d5f546b46e10d Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Sat, 5 Dec 2009 16:29:54 +0000 Subject: --(no)-examples directive --- gentoo-linux/net-misc/anytun/anytun-0.3.2.ebuild | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'gentoo-linux/net-misc') diff --git a/gentoo-linux/net-misc/anytun/anytun-0.3.2.ebuild b/gentoo-linux/net-misc/anytun/anytun-0.3.2.ebuild index 3da5112..50eb290 100644 --- a/gentoo-linux/net-misc/anytun/anytun-0.3.2.ebuild +++ b/gentoo-linux/net-misc/anytun/anytun-0.3.2.ebuild @@ -23,8 +23,11 @@ S="${WORKDIR}/${P}/src" src_compile() { local myconf="" - use gcrypt || myconf="--use-ssl-crypto" - econf --ebuild-compat ${myconf} || die "configure failed" + use gcrypt || myconf=" --use-ssl-crypto" + use examples && myconf="${myconf} --examplesdir=/usr/share/doc/${PF}/examples/etc/" + use examples || myconf="${myconf} --no-examples" + #econf --ebuild-compat ${myconf} || die "configure failed" + econf ${myconf} || die "configure failed" einfo "Building executables" emake || die "make failed" @@ -49,20 +52,14 @@ src_install() { doins wireshark-lua/* || die "failed to install wireshark-lua contrib script" dodoc AUTHORS ChangeLog README || die "failed to install docs" - - if use examples; then - insinto /usr/share/doc/${PF}/etc-anytun-examples/ - doins -r etc/anytun/* || die "failed to install examples" - fi } pkg_config() { [ -e "${ROOT}"/etc/anytun ] && die "${ROOT}/etc/anytun/ already present, rm -R it first " - if [ ! -d "${ROOT}"/usr/share/doc/${PF}/etc-anytun-examples/ ]; then + if [ ! -d "${ROOT}"/usr/share/doc/${PF}/examples/etc/anytun ]; then die "can't copy example configs since examples were not installed (reemerge with USE=\"examples\")" fi - mkdir -p "${ROOT}"/etc/anytun/ || die "couldn't mkdir ${ROOT}/etc/anytun/" - cp -r "${ROOT}"/usr/share/doc/${PF}/etc-anytun-examples/* "${ROOT}"/etc/anytun/ || die "failed to copy examples" + cp -r "${ROOT}"/usr/share/doc/${PF}/examples/etc/anytun "${ROOT}"/etc/ || die "failed to copy examples" } pkg_postinst() { -- cgit v1.2.3