2012-09-18 10:38:30 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
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 () {
|
2012-09-18 10:38:30 +04:00
|
|
|
unpack ${A}
|
2012-02-06 16:39:49 +04:00
|
|
|
cd "${S}"
|
|
|
|
|
|
|
|
# we have to patch the path to imagemagick's convert tool
|
|
|
|
|
2012-09-18 10:38:30 +04:00
|
|
|
epatch "${FILESDIR}"/mypictures.diff
|
2012-02-06 16:39:49 +04:00
|
|
|
sed -i "s|/usr/bin/X11/convert|/usr/bin/convert|g;" index.php
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
webapp_src_preinst
|
|
|
|
|
2012-09-18 10:38:30 +04:00
|
|
|
cp -R [[:lower:]]* .img "${D}/${MY_HTDOCSDIR}"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
dodoc CHANGES README
|
|
|
|
|
2012-09-18 10:38:30 +04:00
|
|
|
webapp_configfile "${MY_HTDOCSDIR}"/index.php
|
|
|
|
webapp_serverowned "${MY_HTDOCSDIR}"/.img
|
|
|
|
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
|
2012-02-06 16:39:49 +04:00
|
|
|
webapp_src_install
|
|
|
|
}
|