summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2004-08-15 15:13:01 +0000
committerStuart Herbert <stuart@gentoo.org>2004-08-15 15:13:01 +0000
commit3233cb5d09b263a3850f5f98ac3d00d5e63ee511 (patch)
treee732e267d468a039e539a7d5f3c85d3ed3345604 /www-apps/mypictures
parentMoved from net-www/moinmoin to www-apps/moinmoin (diff)
downloadgentoo-2-3233cb5d09b263a3850f5f98ac3d00d5e63ee511.tar.gz
gentoo-2-3233cb5d09b263a3850f5f98ac3d00d5e63ee511.tar.bz2
gentoo-2-3233cb5d09b263a3850f5f98ac3d00d5e63ee511.zip
Moved from net-www/mypictures to www-apps/mypictures.
Diffstat (limited to 'www-apps/mypictures')
-rw-r--r--www-apps/mypictures/ChangeLog19
-rw-r--r--www-apps/mypictures/Manifest5
-rw-r--r--www-apps/mypictures/files/digest-mypictures-200402021
-rw-r--r--www-apps/mypictures/files/mypictures.diff14
-rw-r--r--www-apps/mypictures/metadata.xml8
-rw-r--r--www-apps/mypictures/mypictures-20040202.ebuild46
6 files changed, 93 insertions, 0 deletions
diff --git a/www-apps/mypictures/ChangeLog b/www-apps/mypictures/ChangeLog
new file mode 100644
index 000000000000..d70ad534c358
--- /dev/null
+++ b/www-apps/mypictures/ChangeLog
@@ -0,0 +1,19 @@
+# ChangeLog for net-www/mypictures
+# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mypictures/ChangeLog,v 1.1 2004/08/15 15:13:01 stuart Exp $
+
+*mypictures-20040202 (15 Aug 2004)
+
+ 15 Aug 2004; Stuart Herbert <stuart@gentoo.org> +metadata.xml,
+ +files/mypictures.diff, +mypictures-20040202.ebuild:
+ Moved from net-www/mypictures to www-apps/mypictures.
+
+ 03 May 2004; David Holm <dholm@gentoo.org> mypictures-20040202.ebuild:
+ Added to ~ppc.
+
+*mypictures-20040202 (03 May 2004)
+
+ 03 May 2004; Stuart Herbert <stuart@gentoo.org> metadata.xml,
+ mypictures-20040202.ebuild, files/mypictures.diff:
+ Initial import
+
diff --git a/www-apps/mypictures/Manifest b/www-apps/mypictures/Manifest
new file mode 100644
index 000000000000..af6b5334368a
--- /dev/null
+++ b/www-apps/mypictures/Manifest
@@ -0,0 +1,5 @@
+MD5 fc2cff8c46982359cc7cd944e53e7311 mypictures-20040202.ebuild 1081
+MD5 b2f6f0faa8df6daab732424bc78212eb ChangeLog 473
+MD5 3d182d43f7f0341a9a42f96694f04e72 metadata.xml 224
+MD5 d0c4d3efa97c9bf0927e82f3cdb295b8 files/digest-mypictures-20040202 58
+MD5 31a77b7664997f1fa8e77af1adf58833 files/mypictures.diff 482
diff --git a/www-apps/mypictures/files/digest-mypictures-20040202 b/www-apps/mypictures/files/digest-mypictures-20040202
new file mode 100644
index 000000000000..b2271d4f8287
--- /dev/null
+++ b/www-apps/mypictures/files/digest-mypictures-20040202
@@ -0,0 +1 @@
+MD5 0f38d5d868bb36add29e8032083a4a8d mypictures.tgz 43783
diff --git a/www-apps/mypictures/files/mypictures.diff b/www-apps/mypictures/files/mypictures.diff
new file mode 100644
index 000000000000..88c4048ab669
--- /dev/null
+++ b/www-apps/mypictures/files/mypictures.diff
@@ -0,0 +1,14 @@
+diff -u --recursive mypictures.orig/index.php mypictures/index.php
+--- mypictures.orig/index.php 2004-05-03 01:45:58.523174520 +0100
++++ mypictures/index.php 2004-05-03 01:47:16.713287816 +0100
+@@ -471,8 +471,8 @@
+ }
+
+ $cmd = $config['convert'];
+- $cmd .= ' -geometry 120x120 ';
+- $cmd .= '"'.$img.'" "'.$thumb.'"';
++ $cmd .= ' -size 120x120 ';
++ $cmd .= '"'.$img.'" -resize 120x120 +profile "*" "'.$thumb.'"';
+ system($cmd);
+
+ header("Content-type: image/png");
diff --git a/www-apps/mypictures/metadata.xml b/www-apps/mypictures/metadata.xml
new file mode 100644
index 000000000000..0d59c319c3eb
--- /dev/null
+++ b/www-apps/mypictures/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>webapps</herd>
+<maintainer>
+ <email>web-apps@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/www-apps/mypictures/mypictures-20040202.ebuild b/www-apps/mypictures/mypictures-20040202.ebuild
new file mode 100644
index 000000000000..ce0dc43e3669
--- /dev/null
+++ b/www-apps/mypictures/mypictures-20040202.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/mypictures/mypictures-20040202.ebuild,v 1.1 2004/08/15 15:13:01 stuart 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/mypictures/mypictures.tgz"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc"
+IUSE=""
+
+DEPEND="sys-apps/sed"
+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_compile() {
+ # do nothing
+ echo > /dev/null
+}
+
+src_install() {
+ webapp_src_preinst
+
+ cp index.php exifReader.inc exifWriter.inc ${D}${MY_HTDOCSDIR}
+ mkdir ${D}${MY_HTDOCSDIR}/.img
+ cp .img/* ${D}${MY_HTDOCSDIR}/.img
+
+ dodoc CHANGES README
+
+ webapp_configfile ${MY_HTDOCSDIR}
+ webapp_src_install
+}