--- libidn-0.6.9-r1.ebuild 2007-04-24 19:25:12.000000000 +0200 +++ libidn-0.6.9-r2.ebuild 2007-08-01 09:11:59.000000000 +0200 @@ -1,8 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/libidn/libidn-0.6.9-r1.ebuild,v 1.1 2007/04/24 17:25:12 betelgeuse Exp $ +# $Header: $ -inherit java-pkg-opt-2 mono autotools +inherit java-pkg-opt-2 mono autotools elisp-common DESCRIPTION="Internationalized Domain Names (IDN) implementation" HOMEPAGE="http://www.gnu.org/software/libidn/" @@ -18,7 +18,8 @@ mono? ( >=dev-lang/mono-0.95 ) )" RDEPEND="java? ( >=virtual/jre-1.4 ) - mono? ( >=dev-lang/mono-0.95 )" + mono? ( >=dev-lang/mono-0.95 ) + emacs? ( virtual/emacs )" src_unpack() { unpack ${A} @@ -32,32 +33,41 @@ local myconf=" --disable-csharp" use mono && myconf="--enable-csharp=mono" + use emacs && myconf="${myconf} --with-lispdir="${SITELISP}/${PN}"" econf \ $(use_enable nls) \ $(use_enable java) \ ${myconf} \ - || die + || die "econf failed" - emake || die + emake || die "emake failed" } src_install() { - make install DESTDIR=${D} || die + emake install DESTDIR="${D}" || die "emake install failed" dodoc AUTHORS ChangeLog FAQ NEWS README THANKS TODO - use emacs || rm -r ${D}/usr/share/emacs + use emacs || rm -r "${D}/usr/share/emacs" if use doc; then dohtml -r doc/reference/html/* fi if use java; then - java-pkg_newjar ${D}/usr/share/java/${P}.jar || die - rm -rf ${D}/usr/share/java + java-pkg_newjar "${D}"/usr/share/java/${P}.jar || die "java-pkg_newjar failed" + rm -rf "${D}"/usr/share/java if use doc; then java-pkg_dojavadoc doc/java fi fi } + +pkg_postinst() { + elog "activate Emacs support by adding the following lines to your ~/.emacs file" + elog " (add-to-list 'load-path \"${SITELISP}/${PN}\")" + elog " (load idna)" + elog " (load punycode)" + +}