diff options
author | Renat Lumpau <rl03@gentoo.org> | 2006-01-06 15:33:27 +0000 |
---|---|---|
committer | Renat Lumpau <rl03@gentoo.org> | 2006-01-06 15:33:27 +0000 |
commit | a1bad2097eeff85235bca1bc59761bb3f73776d1 (patch) | |
tree | 2f613ba1f689a062bfa7392f55abd969f17d63d8 /www-apps/mypictures/mypictures-20040202-r1.ebuild | |
parent | Stable on sparc wrt #117911 (diff) | |
download | gentoo-2-a1bad2097eeff85235bca1bc59761bb3f73776d1.tar.gz gentoo-2-a1bad2097eeff85235bca1bc59761bb3f73776d1.tar.bz2 gentoo-2-a1bad2097eeff85235bca1bc59761bb3f73776d1.zip |
Ebuild cleanup
(Portage version: 2.0.53)
Diffstat (limited to 'www-apps/mypictures/mypictures-20040202-r1.ebuild')
-rw-r--r-- | www-apps/mypictures/mypictures-20040202-r1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/www-apps/mypictures/mypictures-20040202-r1.ebuild b/www-apps/mypictures/mypictures-20040202-r1.ebuild new file mode 100644 index 000000000000..e35c415be670 --- /dev/null +++ b/www-apps/mypictures/mypictures-20040202-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/mypictures/mypictures-20040202-r1.ebuild,v 1.1 2006/01/06 15:33:27 rl03 Exp $ + +inherit webapp eutils + +DESCRIPTION="Simple photo-gallery for websites" +HOMEPAGE="http://www.splitbrain.org/Programming/PHP/mypictures/index.php" +SRC_URI="http://www.splitbrain.org/Programming/PHP/${PN}/${PN}.tgz" + +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc" +IUSE="" + +RDEPEND="media-gfx/imagemagick" + +S=${WORKDIR}/${PN} + +src_unpack () { + unpack "${A}" + cd "${S}" + + # we have to patch the path to imagemagick's convert tool + + epatch ${FILESDIR}/mypictures.diff + sed -i "s|/usr/bin/X11/convert|/usr/bin/convert|g;" index.php +} + +src_install() { + webapp_src_preinst + + cp -R [[:lower:]]* .img ${D}/${MY_HTDOCSDIR} + + dodoc CHANGES README + + webapp_configfile ${MY_HTDOCSDIR}/index.php + webapp_serverowned ${MY_HTDOCSDIR}/.img + webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt + webapp_src_install +} |