ebuild cleanup wrt #208584
authorBenedikt Boehm <hollow@gentoo.org>
Tue, 19 Feb 2008 12:37:37 +0000 (12:37 +0000)
committerBenedikt Boehm <hollow@gentoo.org>
Tue, 19 Feb 2008 12:37:37 +0000 (12:37 +0000)
Package-Manager: portage-2.1.4.4

www-apps/dokuwiki/ChangeLog
www-apps/dokuwiki/Manifest
www-apps/dokuwiki/dokuwiki-20070626b.ebuild

index f070a79dd071f31a56d076854de28d754ea9282b..9b9f52f29bb845770b00b20d74896f534d60c62a 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for www-apps/dokuwiki
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/dokuwiki/ChangeLog,v 1.28 2007/10/22 20:47:35 armin76 Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/dokuwiki/ChangeLog,v 1.29 2008/02/19 12:37:37 hollow Exp $
+
+  19 Feb 2008; Benedikt Böhm <hollow@gentoo.org> dokuwiki-20070626b.ebuild:
+  ebuild cleanup wrt #208584
+
+  05 Feb 2008; Jakub Moc <jakub@gentoo.org> dokuwiki-20070626b.ebuild:
+  Check for all PHP features at once. Quoting, cleanup.
 
   22 Oct 2007; Raúl Porcel <armin76@gentoo.org> dokuwiki-20070626b.ebuild:
   Add ~sparc wrt #195404
index ec05ec3c4b1773d8ba3e2c74a9245e0b1c0e713e..793039a5099b0c6e32d59fd758a1dd0daae0ec25 100644 (file)
@@ -1,5 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
 AUX postinstall-en.txt 1590 RMD160 febd5daba4df2026d77f03f45894f022a0d1eaa9 SHA1 5334752ca970db3bebdba57b3cce9eff125d5888 SHA256 16f56b18233207dde91c632b4a69a07b627154abd3809aee94ccbf165bb60f41
 DIST dokuwiki-2007-06-26b.tgz 1214743 RMD160 1d68b261267c3e9cf06df9d8c74813c5c09e39c9 SHA1 5ecfd9678605047b2ce7d8fc781c510bcb7f2b64 SHA256 b24f5596e253cea6670bc4a57e42769301cc6cd82427b975eaa6c7ea56231afd
-EBUILD dokuwiki-20070626b.ebuild 2240 RMD160 4771061cbf5f28b3f71e373d59e734fd5461120d SHA1 a728a6135bce99dca038f0a990efc8074ebc1964 SHA256 c458a55affce06bff77c10ddb6bfe71379ab5f4f51385ca9e8cef892014a9252
-MISC ChangeLog 4733 RMD160 90d9a51848583f87a79c22c957e286f439285a3b SHA1 68ea6b4e03f2a03667d9b287658e09dc4cbddae2 SHA256 3015833e52e73f11019bf8298a69725753e84f0197c41c6279758683e1d0fdab
+EBUILD dokuwiki-20070626b.ebuild 1473 RMD160 d9dac4e35ee8411aa68b8c47a4a9e995f5e4ea59 SHA1 d1eb69607101e7d8be5cc01f9aba134f62ec1efa SHA256 19e655633d13f1721e3203e85c5252ca5533dd8c11eaca7b775f3d557164d4b8
+MISC ChangeLog 4967 RMD160 4949eac7fc4ddbba07fbb4a52af33c814bd83365 SHA1 16067239bd4d1ad75ae00a17083d1a487fddffde SHA256 43b983bff65a4a4719ea8c7781b4bd8a9be24682b64f65d20d09b518692dc753
 MISC metadata.xml 843 RMD160 61c80553f74e108ce84fec44467c6c4e6dc2cb9f SHA1 022976ebf107c25d6db434e4765adbaa9645ae5b SHA256 2d1d093fc0a1eb15ba44bebe61142c3c3e17bb87ec7adee4aadb1d8f6a90c693
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.8 (GNU/Linux)
+
+iEYEARECAAYFAke6zZoACgkQmPFBzbX68WEGgwCfS/o0Xj2NdBaqZZgu4W3fgpsN
+C6oAoIDBwNpBH4Tv5x3UCMhpAtFpHtSK
+=4I55
+-----END PGP SIGNATURE-----
index f0df541295e3af74a2dc74a2efab4a6c581ce7ab..bce406eb95ec065d78cbb6d3476a2eba0412e8e5 100644 (file)
@@ -1,14 +1,13 @@
-# 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/dokuwiki/dokuwiki-20070626b.ebuild,v 1.3 2007/10/22 20:47:35 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/dokuwiki/dokuwiki-20070626b.ebuild,v 1.4 2008/02/19 12:37:37 hollow Exp $
 
 inherit webapp depend.php
 
-# Upstream uses dashes in the datestamp
+# upstream uses dashes in the datestamp
 MY_PV="${PV:0:4}-${PV:4:2}-${PV:6:2}${PV:8:1}"
 
-DESCRIPTION="DokuWiki is a simple to use Wiki aimed at a small companies
-documentation needs."
+DESCRIPTION="DokuWiki is a simple to use Wiki aimed at a small companies documentation needs."
 HOMEPAGE="http://wiki.splitbrain.org/wiki:dokuwiki"
 SRC_URI="http://www.splitbrain.org/_media/projects/${PN}/${PN}-${MY_PV}.tgz"
 
@@ -16,75 +15,54 @@ LICENSE="GPL-2"
 KEYWORDS="~amd64 ~ppc ~sparc x86"
 IUSE=""
 
-DEPEND="virtual/php"
-RDEPEND="${DEPEND}"
+DEPEND=""
+RDEPEND=""
 
-pkg_setup() {
-       # let the eclass pick right php version...
-       require_php_cli
+need_php_httpd
 
-       # ...and we check if correct USE flag for XML support is enabled
+pkg_setup() {
+       webapp_pkg_setup
+       has_php
        if [[ ${PHP_VERSION} == "4" ]] ; then
-               require_php_with_use expat
+               require_php_with_use cli expat
        else
-               require_php_with_use xml
+               require_php_with_use cli xml
        fi
-
-       webapp_pkg_setup
 }
 
 src_unpack() {
-       cd ${WORKDIR}
-       unpack ${PN}-${MY_PV}.tgz
+       unpack ${A}
        mv ${PN}-${MY_PV} ${P}
-}
+       cd "${S}"
 
-src_compile() {
-       # Default compile hangs
-       echo "Nothing to compile"
+       # create initial changes file
+       touch data/changes.log
 }
 
 src_install() {
-       local docs="README"
        webapp_src_preinst
 
-       # NOTE: doc files should go into /usr/share/doc, and NOT installed in the vhost
-       einfo "Installing docs"
-       dodoc ${docs}
-       for doc in ${docs} COPYING; do
-               rm -f ${doc}
-       done
+       dodoc README
+       rm -f README COPYING VERSION
 
-       # Move bin directory to safe location (outside of docroot)
-       # To resolve security bug #146800
        docinto scripts
        dodoc bin/*
        rm -rf bin
 
-       einfo "Copying main files"
-       cp -r . ${D}/${MY_HTDOCSDIR}
-
-       # Install the htaccess file for pretty urls
-       cp .htaccess ${D}/${MY_HTDOCSDIR}
+       insinto "${MY_HTDOCSDIR}"
+       doins -r .
 
-       # Create initial changes file
-       touch ${D}/${MY_HTDOCSDIR}/data/changes.log data/changes.log
-
-       # The data dir needs to be owned by the server
-       for x in `find . -print | grep "data/*" | grep -v .htaccess` ; do
-               webapp_serverowned ${MY_HTDOCSDIR}/$x
+       for x in $(find data/ -not -name '.htaccess'); do
+               webapp_serverowned "${MY_HTDOCSDIR}"/${x}
        done
 
-       webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
-       webapp_configfile ${MY_HTDOCSDIR}/.htaccess
-
-       webapp_configfile ${MY_HTDOCSDIR}/conf
+       webapp_configfile "${MY_HTDOCSDIR}"/.htaccess
+       webapp_configfile "${MY_HTDOCSDIR}"/conf
 
-       # Mark all conf/* files as config files, except msg, which should be
-       # updated unconditionally.
-       for x in $( ls -1 ${D}/${MY_HTDOCSDIR}/conf | grep -v ^msg$ ) ; do
-               webapp_configfile ${MY_HTDOCSDIR}/conf/$x
+       for x in $(find conf/ -not -name 'msg'); do
+               webapp_configfile "${MY_HTDOCSDIR}"/${x}
        done
 
+       webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
        webapp_src_install
 }