|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf/autoconf-2.61.ebuild,v 1.10 2007/01/19 23:34:04 vapier Exp $ | # $Header: /var/cvsroot/gentoo-x86/sys-devel/autoconf/autoconf-2.61.ebuild,v 1.10 2007/01/19 23:34:04 vapier Exp $ |
| |
|
inherit elisp-common |
|
|
DESCRIPTION="Used to create autoconfiguration files" | DESCRIPTION="Used to create autoconfiguration files" |
HOMEPAGE="http://www.gnu.org/software/autoconf/autoconf.html" | HOMEPAGE="http://www.gnu.org/software/autoconf/autoconf.html" |
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" | SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
|
|
RDEPEND="${DEPEND} | RDEPEND="${DEPEND} |
>=sys-devel/autoconf-wrapper-4-r2" | >=sys-devel/autoconf-wrapper-4-r2" |
| |
|
SITEFILE=50${PN}-gentoo.el |
|
|
src_compile() { | src_compile() { |
(use emacs && type -p emacs) \ |
# Disable emacs in the build system since we don't DEPEND on it |
&& export EMACS=emacs \ |
export EMACS=no |
|| export EMACS=no |
|
econf --program-suffix="-${PV}" || die | econf --program-suffix="-${PV}" || die |
# econf updates config.{sub,guess} which forces the manpages | # econf updates config.{sub,guess} which forces the manpages |
# to be regenerated which we dont want to do #146621 | # to be regenerated which we dont want to do #146621 |
|
|
emake DESTDIR="${D}" install || die | emake DESTDIR="${D}" install || die |
dodoc AUTHORS BUGS NEWS README TODO THANKS \ | dodoc AUTHORS BUGS NEWS README TODO THANKS \ |
ChangeLog ChangeLog.0 ChangeLog.1 ChangeLog.2 | ChangeLog ChangeLog.0 ChangeLog.1 ChangeLog.2 |
|
|
|
if use emacs; then |
|
elisp-install ${PN} lib/emacs/*.el |
|
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
|
fi |
|
} |
|
|
|
pkg_postinst() { |
|
use emacs && elisp-site-regen |
|
} |
|
|
|
pkg_postrm() { |
|
use emacs && elisp-site-regen |
} | } |