diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2008-02-24 00:00:38 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2008-02-24 00:00:38 +0000 |
commit | 5d6ee48dbcad6d05958db315707f44b33c73b79f (patch) | |
tree | 8e832dc7d5305eee5343121e7a159303db0a55b3 /www-apps/twiki/twiki-4.1.2.ebuild | |
parent | make IUSE=vhosts optional (diff) | |
download | historical-5d6ee48dbcad6d05958db315707f44b33c73b79f.tar.gz historical-5d6ee48dbcad6d05958db315707f44b33c73b79f.tar.bz2 historical-5d6ee48dbcad6d05958db315707f44b33c73b79f.zip |
version bump, #209663; ebuild cleanup wrt #208584
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'www-apps/twiki/twiki-4.1.2.ebuild')
-rw-r--r-- | www-apps/twiki/twiki-4.1.2.ebuild | 89 |
1 files changed, 41 insertions, 48 deletions
diff --git a/www-apps/twiki/twiki-4.1.2.ebuild b/www-apps/twiki/twiki-4.1.2.ebuild index 58492035585b..b99eb7510f9f 100644 --- a/www-apps/twiki/twiki-4.1.2.ebuild +++ b/www-apps/twiki/twiki-4.1.2.ebuild @@ -1,8 +1,10 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/twiki/twiki-4.1.2.ebuild,v 1.1 2007/05/26 21:48:05 rl03 Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/twiki/twiki-4.1.2.ebuild,v 1.2 2008/02/24 00:00:38 hollow Exp $ -inherit webapp eutils depend.apache +WEBAPP_NO_AUTO_INSTALL="yes" + +inherit webapp MY_PN="TWiki" @@ -14,56 +16,50 @@ LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="" -S=${WORKDIR} - -RDEPEND=">=dev-lang/perl-5.8 - >=app-text/rcs-5.7 - sys-apps/diffutils - dev-perl/Algorithm-Diff - >=virtual/perl-CGI-3.20 - virtual/perl-File-Spec - dev-perl/Text-Diff - virtual/perl-Time-Local - dev-perl/CGI-Session - virtual/perl-digest-base - dev-perl/Digest-SHA1 - dev-perl/locale-maketext-lexicon - virtual/perl-libnet - dev-perl/URI - virtual/cron - dev-perl/HTML-Parser -" - -want_apache - -src_unpack() { - unpack ${A} - cd ${S} - - mv ${S}/bin/LocalLib.cfg.txt ${S}/bin/LocalLib.cfg - # change web user to apache - cd ${S}/lib/TWiki - find . -name '*,v' -exec sed -i 's|nobody:|apache:|g' '{}' ';' -} +S="${WORKDIR}" + +RDEPEND=">=app-text/rcs-5.7 + sys-apps/diffutils + >=dev-lang/perl-5.8 + dev-perl/Algorithm-Diff + dev-perl/CGI-Session + dev-perl/Digest-SHA1 + dev-perl/HTML-Parser + dev-perl/locale-maketext-lexicon + dev-perl/Text-Diff + dev-perl/URI + virtual/cron + >=virtual/perl-CGI-3.20 + virtual/perl-digest-base + virtual/perl-File-Spec + virtual/perl-libnet + virtual/perl-Time-Local" + +need_httpd_cgi src_install() { webapp_src_preinst - cp -r . ${D}/${MY_HTDOCSDIR} - - dodoc readme.txt + dodoc AUTHORS COPYRIGHT readme.txt dohtml T*.html INSTALL.html + rm -f readme.txt T*.html INSTALL.html - for file in $(find data pub) ; do - webapp_serverowned "${MY_HTDOCSDIR}/${file}" + mv bin/LocalLib.cfg{.txt,} + + insinto "${MY_HTDOCSDIR}" + doins -r . + + for f in $(find data pub); do + webapp_serverowned "${MY_HTDOCSDIR}"/${f} done - for a in bin/setlib.cfg bin/LocalLib.cfg ; do - webapp_configfile ${MY_HTDOCSDIR}/${a} + for f in bin/setlib.cfg bin/LocalLib.cfg; do + webapp_configfile "${MY_HTDOCSDIR}"/${f} done - webapp_hook_script ${FILESDIR}/reconfig - webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt - webapp_postupgrade_txt en ${FILESDIR}/postupgrade-en.txt + + webapp_hook_script "${FILESDIR}"/reconfig + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt webapp_src_install } @@ -76,8 +72,5 @@ pkg_postinst() { ewarn "You are _strongly_ encouraged to to read the upgrade guide:" ewarn "http://twiki.org/cgi-bin/view/TWiki/TWikiDocumentation" ewarn - elog "webapp-config will not be run automatically" - elog "Run webapp-config -I -h <host> -d ${PN} ${PN} ${PVR} to install" - elog - # webapp_pkg_postinst + webapp_pkg_postinst } |