]> Pileus Git - ~andy/sunrise/commitdiff
app-editors/scribes: New ebuild for bug 350939, thanks to hwoarang and cynapsia@gmail.com
authorMoritz Schlarb (moschlar) <mail@moritz-schlarb.de>
Sun, 9 Oct 2011 22:12:25 +0000 (22:12 +0000)
committerMoritz Schlarb (moschlar) <mail@moritz-schlarb.de>
Sun, 9 Oct 2011 22:12:25 +0000 (22:12 +0000)
svn path=/sunrise/; revision=12452

app-editors/scribes/ChangeLog [new file with mode: 0644]
app-editors/scribes/Manifest [new file with mode: 0644]
app-editors/scribes/files/scribes-byte-compiling-plugins.patch [new file with mode: 0644]
app-editors/scribes/files/scribes-sandbox.patch [new file with mode: 0644]
app-editors/scribes/metadata.xml [new file with mode: 0644]
app-editors/scribes/scribes-0.4.ebuild [new file with mode: 0644]

diff --git a/app-editors/scribes/ChangeLog b/app-editors/scribes/ChangeLog
new file mode 100644 (file)
index 0000000..cf7dbed
--- /dev/null
@@ -0,0 +1,9 @@
+# ChangeLog for app-editors/scribes
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+  09 Oct 2011; Moritz Schlarb (moschlar) <mail@moritz-schlarb.de>
+  +scribes-0.4.ebuild, +files/scribes-byte-compiling-plugins.patch,
+  +files/scribes-sandbox.patch, +metadata.xml:
+  New ebuild for bug 350939, thanks to hwoarang and cynapsia@gmail.com
+
diff --git a/app-editors/scribes/Manifest b/app-editors/scribes/Manifest
new file mode 100644 (file)
index 0000000..1f44c5f
--- /dev/null
@@ -0,0 +1,6 @@
+AUX scribes-byte-compiling-plugins.patch 1532 RMD160 353b456a31b2bbad04fb3a661eb3a545af2bf698 SHA1 cd8ee09c631503803a56999b2f38cbff8789bd8e SHA256 02426f2d8e6f69e3fa15b5a2be2f3ff9c596146a435a1a822a4de97a89f1072e
+AUX scribes-sandbox.patch 407 RMD160 157515e20c8a89a0d347e390e053210f70e98865 SHA1 45ab7796826c365320393427ec59b4b55536d446 SHA256 dd8faf1962a9537b2d8b5d282ceb03d878f3b9527c065e2114f0381e8d77ec82
+DIST scribes-0.4-dev-build954.tar.bz2 1142342 RMD160 640e64ae14afff3da2573c7acdf29c895dae7cf4 SHA1 0089c967872db6c72893945ba790a489620b3fc1 SHA256 f4cb765d5690f7549eb0336ce23fd0648ba548b9a9e259876e5ee2c095a4b0f1
+EBUILD scribes-0.4.ebuild 1525 RMD160 395f06e2d47f973ff89dc2a08720e417b33c498c SHA1 5b2682b1172f357c19282fb5be63bb3c1cd1208e SHA256 10a672df3c8d4ef840d8b97f61eed8ec0c3e8984626356429653a5821789e797
+MISC ChangeLog 373 RMD160 30276edaa8ed985d79d956b0c1205799badde9cb SHA1 a8f3049e1405d3705b6de99b136f08f84cfbe446 SHA256 0c7c9239c754960510873d5166003950e8bf1c8d2c1006d1d2d75b336074a6f8
+MISC metadata.xml 214 RMD160 efd8175069efb91061298ff4584218b633e44678 SHA1 d372fdbfcb7fd07a4082961d3f3527be4fca1d60 SHA256 c1f09dc7d5313cd2da7b82259c7846ed23144d62b15e59680ada90e2b6b4d154
diff --git a/app-editors/scribes/files/scribes-byte-compiling-plugins.patch b/app-editors/scribes/files/scribes-byte-compiling-plugins.patch
new file mode 100644 (file)
index 0000000..952b788
--- /dev/null
@@ -0,0 +1,37 @@
+--- Makefile.am~       2011-10-09 20:52:41.677430454 +0200
++++ Makefile.am        2011-10-09 20:57:26.398870947 +0200
+@@ -47,29 +47,6 @@
+       gnome-doc-utils.make
+ install-data-hook:
+-      echo "Start byte compiling plugins..."
+-      python -OO compile.py
+-      echo "Finished byte compiling plugins"
+-      if [ -d $(DESTDIR)$(datadir)/scribes/plugins ]; then \
+-              echo "removing " $(DESTDIR)$(datadir)/scribes/plugins ;\
+-              rm -rf $(DESTDIR)$(datadir)/scribes/plugins ;\
+-              echo "removed " $(DESTDIR)$(datadir)/scribes/plugins ;\
+-      fi
+-      if [ -d $(DESTDIR)$(datadir)/scribes/GenericPlugins ]; then \
+-              echo "removing " $(DESTDIR)$(datadir)/scribes/GenericPlugins ;\
+-              rm -rf $(DESTDIR)$(datadir)/scribes/GenericPlugins ;\
+-              echo "removed " $(DESTDIR)$(datadir)/scribes/GenericPlugins ;\
+-      fi
+-      if [ -d $(DESTDIR)$(datadir)/scribes/LanguagePlugins ]; then \
+-              echo "removing " $(DESTDIR)$(datadir)/scribes/LanguagePlugins ;\
+-              rm -rf $(DESTDIR)$(datadir)/scribes/LanguagePlugins ;\
+-              echo "removed " $(DESTDIR)$(datadir)/scribes/LanguagePlugins ;\
+-      fi
+-      if [ -d $(DESTDIR)$(libdir)/scribes ]; then \
+-              echo "removing " $(DESTDIR)$(libdir)/scribes ;\
+-              rm -rf $(DESTDIR)$(libdir)/scribes ;\
+-              echo "removed " $(DESTDIR)$(libdir)/scribes ;\
+-      fi
+       mkdir -p $(DESTDIR)$(libdir)/scribes
+       cp -R GenericPlugins $(DESTDIR)$(libdir)/scribes
+       cp -R LanguagePlugins $(DESTDIR)$(libdir)/scribes
+@@ -79,4 +56,3 @@
+       chmod 755 $(DESTDIR)$(startupdir)/scribesmodule
+       chmod 755 $(DESTDIR)$(startupdir)/scribesplugin
+       rm -rf $(startup_script)
+-      python removepyc.py
diff --git a/app-editors/scribes/files/scribes-sandbox.patch b/app-editors/scribes/files/scribes-sandbox.patch
new file mode 100644 (file)
index 0000000..95737be
--- /dev/null
@@ -0,0 +1,16 @@
+http://bugs.gentoo.org/296891
+
+--- SCRIBES/Makefile.am
++++ SCRIBES/Makefile.am
+@@ -15,11 +15,6 @@
+       rm -f $(python_files) $(python_files).tmp
+       $(edit) $(python_in_files) > $(python_files).tmp
+       mv $(python_files).tmp $(python_files)
+-      if [ -d $(scribesdir) ]; then \
+-              echo "removing " $(scribesdir) ;\
+-              rm -rf $(scribesdir) ;\
+-              echo "removed " $(scribesdir) ;\
+-      fi
+ scribes_PYTHON = \
+       info.py \
diff --git a/app-editors/scribes/metadata.xml b/app-editors/scribes/metadata.xml
new file mode 100644 (file)
index 0000000..cc3fe24
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer>
+               <email>maintainer-wanted@gentoo.org</email>
+       </maintainer>
+</pkgmetadata>
diff --git a/app-editors/scribes/scribes-0.4.ebuild b/app-editors/scribes/scribes-0.4.ebuild
new file mode 100644 (file)
index 0000000..797c66b
--- /dev/null
@@ -0,0 +1,73 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+PYTHON_DEPEND="2:2.6"
+GCONF_DEBUG=no
+
+build=954
+
+inherit autotools eutils gnome2 python
+
+MY_P="${P}-dev-build${build}"
+DESCRIPTION="a text editor that is simple, slim and sleek, yet powerful."
+HOMEPAGE="http://scribes.sourceforge.net"
+SRC_URI="http://launchpad.net/scribes/${PV}/scribes-milestone1/+download/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND="gnome-base/gconf
+       doc? ( gnome-extra/yelp )
+       dev-libs/dbus-glib
+       dev-python/dbus-python
+       dev-python/pygtk
+       dev-python/gtkspell-python
+       dev-python/pygtksourceview
+       dev-python/pyxdg"
+DEPEND="app-text/gnome-doc-utils
+       dev-util/pkgconfig
+       dev-util/intltool
+       sys-devel/gettext"
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="AUTHORS ChangeLog CONTRIBUTORS NEWS README TODO TRANSLATORS"
+
+pkg_setup() {
+       python_set_active_version 2
+       G2CONF="--disable-scrollkeeper"
+}
+
+src_prepare() {
+       epatch "${FILESDIR}"/${PN}-sandbox.patch
+       # keep make from byte-compiling python modules itself
+       epatch "${FILESDIR}"/${PN}-byte-compiling-plugins.patch
+       eautoreconf
+
+       # make py-compile useless (but true)
+       ln -nfs $(type -P true) py-compile || die "Could not kill py-compile"
+
+       python_convert_shebangs -r 2 .
+
+       gnome2_src_prepare
+}
+
+src_install() {
+       gnome2_src_install
+       python_clean_installation_image
+}
+
+pkg_postinst() {
+       gnome2_pkg_postinst
+       python_mod_optimize SCRIBES
+}
+
+pkg_postrm() {
+       gnome2_pkg_postrm
+       python_mod_cleanup SCRIBES
+}