summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadoslaw Stachowiak <radek@gentoo.org>2006-05-27 14:32:10 +0000
committerRadoslaw Stachowiak <radek@gentoo.org>2006-05-27 14:32:10 +0000
commitead2a85ed637bb976b61d9f042ede94eaa4e9eac (patch)
treee02d77e77c248a80f1f39f2d32ee4e325c968092 /net-zope/externaleditor/externaleditor-0.9.1.ebuild
parentremoved old obsolet version (diff)
downloadgentoo-2-ead2a85ed637bb976b61d9f042ede94eaa4e9eac.tar.gz
gentoo-2-ead2a85ed637bb976b61d9f042ede94eaa4e9eac.tar.bz2
gentoo-2-ead2a85ed637bb976b61d9f042ede94eaa4e9eac.zip
version bump, #129581, changed method of using package
(Portage version: 2.1_rc2-r3)
Diffstat (limited to 'net-zope/externaleditor/externaleditor-0.9.1.ebuild')
-rw-r--r--net-zope/externaleditor/externaleditor-0.9.1.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/net-zope/externaleditor/externaleditor-0.9.1.ebuild b/net-zope/externaleditor/externaleditor-0.9.1.ebuild
new file mode 100644
index 000000000000..1a6ede883c00
--- /dev/null
+++ b/net-zope/externaleditor/externaleditor-0.9.1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-zope/externaleditor/externaleditor-0.9.1.ebuild,v 1.1 2006/05/27 14:32:10 radek Exp $
+
+inherit zproduct
+
+MY_PN="ExternalEditor"
+MY_P="${MY_PN}-${PV}-src"
+DESCRIPTION="Allows you to use your favorite editor(s) from ZMI"
+HOMEPAGE="http://plope.com/software/ExternalEditor/"
+SRC_URI="${HOMEPAGE}/${MY_P}.tgz"
+
+LICENSE="ZPL"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND=">=net-zope/zopeedit-${PV}"
+
+ZPROD_LIST="${MY_PN}"
+
+S_ZPROD=${WORKDIR}/${MY_PN}
+#S=${S_ZPROD}
+MYDOC="*.txt ${MYDOC}"
+
+src_unpack() {
+ # this hack is needed for creating proper zope product directory
+ # with only necessary files (looking from zope product standpoint )
+ # while skipping unnecesary files from zopeedit package
+ mkdir ${S_ZPROD}.tmp
+ unpack ${MY_P}.tgz
+ cd ${S_ZPROD}
+ mv *.dtml __init__.py *.txt *.gif ${MY_PN}.py ${S_ZPROD}.tmp
+ cd ..
+ rm -rf ${S_ZPROD}
+ mkdir ${S_ZPROD}
+ # this mv creates proper product directory in default location
+ mv ${S_ZPROD}.tmp ${S_ZPROD}/${MY_PN}
+}
+
+src_install() {
+ S="${S_ZPROD}" zproduct_src_install
+}
+
+pkg_postinst() {
+ zproduct_pkg_postinst
+ ewarn "To use the External Editor Zope Product you will need to manually"
+ ewarn "configure the helper application(/usr/bin/zopeedit.py) for your"
+ ewarn "browser. Read the documention in /usr/share/doc/${PF}/"
+}