Gentoo Archives: gentoo-commits

From: Dane Smith <c1pher@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/c1pher:master commit in: www-apps/indefero/, www-apps/indefero/files/
Date: Wed, 01 Feb 2012 18:26:29
Message-Id: 627567e7409af40d2f715a05497b287a71e0100a.c1pher@gentoo
1 commit: 627567e7409af40d2f715a05497b287a71e0100a
2 Author: Dane Smith <c1pher <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 1 18:25:35 2012 +0000
4 Commit: Dane Smith <c1pher <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 1 18:25:35 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/c1pher.git;a=commit;h=627567e7
7
8 Initial ebuild for indefero.
9
10 ---
11 www-apps/indefero/Manifest | 4 ++
12 www-apps/indefero/files/indefero-gentoo-pluf.diff | 13 +++++++
13 www-apps/indefero/indefero-1.2.ebuild | 40 +++++++++++++++++++++
14 www-apps/indefero/metadata.xml | 10 +++++
15 4 files changed, 67 insertions(+), 0 deletions(-)
16
17 diff --git a/www-apps/indefero/Manifest b/www-apps/indefero/Manifest
18 new file mode 100644
19 index 0000000..793c56c
20 --- /dev/null
21 +++ b/www-apps/indefero/Manifest
22 @@ -0,0 +1,4 @@
23 +AUX indefero-gentoo-pluf.diff 529 RMD160 c7e7ea57ee4b7aa362041a98f3c83f968a4cc01c SHA1 05bc152b1daf436f1b88fd6ee7ccb8498f059a42 SHA256 bda6a9135ec58dec74a6b677577904c566e8001b815712c8160a2c6c29cf7c25
24 +DIST indefero-1.2.zip 954890 RMD160 3d9272e1f95673ec7c0b9522494f70fe4c3c6af4 SHA1 962b7b542b62b5d9a3ffa4072e0c2f37be8dcbd6 SHA256 f67f542f6f253945d4b5ec7a2b81d842a63aa23200adef1cb2dede3d7bd15ef1
25 +EBUILD indefero-1.2.ebuild 941 RMD160 d368559084e545964d0f546200ee98c53064f77b SHA1 1ea180bbe08ebaa1db054c89aba6fcbdeb84bbc1 SHA256 ab43a45154d774e66877cacc317b5733af47f6f9ad2c50b21c0c9638242d0638
26 +MISC metadata.xml 252 RMD160 0d6b4d4e9e2fc0a9fc73289b6f3234195a3a1405 SHA1 6d719654a220ceff01851fa059936c79ca6bf9be SHA256 50fba57de1e11a48fbf58020c096095ebf9ec5defa2b5bcda9ed44e5be159d3f
27
28 diff --git a/www-apps/indefero/files/indefero-gentoo-pluf.diff b/www-apps/indefero/files/indefero-gentoo-pluf.diff
29 new file mode 100644
30 index 0000000..549260d
31 --- /dev/null
32 +++ b/www-apps/indefero/files/indefero-gentoo-pluf.diff
33 @@ -0,0 +1,13 @@
34 +diff --git a/src/IDF/conf/path.php-dist b/src/IDF/conf/path.php-dist
35 +index d8c90ca..9c566e4 100644
36 +--- a/src/IDF/conf/path.php-dist
37 ++++ b/src/IDF/conf/path.php-dist
38 +@@ -29,7 +29,7 @@
39 + * PLUF_PATH: path to the folder containing the Pluf.php file.
40 + * IDF_PATH: path to the folder containing the IDF folder.
41 + */
42 +-define('PLUF_PATH', dirname(__FILE__).'/../../../../pluf/src');
43 ++define('PLUF_PATH', dirname(__FILE__).'/usr/share/php/pluf/');
44 + define('IDF_PATH', dirname(__FILE__).'/../..');
45 +
46 + set_include_path(get_include_path()
47
48 diff --git a/www-apps/indefero/indefero-1.2.ebuild b/www-apps/indefero/indefero-1.2.ebuild
49 new file mode 100644
50 index 0000000..f0a1290
51 --- /dev/null
52 +++ b/www-apps/indefero/indefero-1.2.ebuild
53 @@ -0,0 +1,40 @@
54 +# Copyright 1999-2012 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +# $Header: $
57 +
58 +EAPI=4
59 +inherit eutils webapp
60 +
61 +DESCRIPTION="An open source Google Code clone"
62 +HOMEPAGE="http://www.indefero.net/"
63 +SRC_URI="http://projects.ceondo.com/p/${PN}/downloads/get/${P}.zip"
64 +
65 +LICENSE="GPL-2"
66 +SLOT="0"
67 +KEYWORDS="~amd64 ~x86"
68 +IUSE="doc"
69 +
70 +DEPEND="app-arch/unzip"
71 +RDEPEND="${DEPEND}
72 + dev-lang/php[gd]
73 + dev-php/pluf
74 + "
75 +
76 +src_prepare(){
77 + #Expect pluf to be installed in the normal location.
78 + epatch "${FILESDIR}/${PN}-gentoo-pluf.diff"
79 +}
80 +
81 +src_install(){
82 + webapp_src_preinst
83 + rm COPYING INSTALL.mdtext
84 + dodoc doc/* NEWS.mdtext AUTHORS CONTRIBUTE.mdtext
85 + rm -rf doc
86 + mv src/IDF/conf/idf.php-dist src/IDF/conf/idf.php
87 +
88 + cp -R . "${D}/${MY_HTDOCSDIR}"
89 + webapp_configfile "${MY_HTDOCSDIR}/src/IDF/conf/idf.php"
90 + #Write a postinstall doc
91 + #webapp_postinstall_txt en "${FILESDIR}/postinstall-en-${PV}.txt"
92 + webapp_src_install
93 +}
94
95 diff --git a/www-apps/indefero/metadata.xml b/www-apps/indefero/metadata.xml
96 new file mode 100644
97 index 0000000..2ba872d
98 --- /dev/null
99 +++ b/www-apps/indefero/metadata.xml
100 @@ -0,0 +1,10 @@
101 +<?xml version="1.0" encoding="UTF-8"?>
102 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
103 +<pkgmetadata>
104 + <herd>no-herd</herd>
105 + <maintainer>
106 + <email>c1pher@g.o</email>
107 + <name>Dane Smith</name>
108 + </maintainer>
109 +</pkgmetadata>
110 +