summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-06-30 10:55:36 +0200
committerJeroen Roovers <jer@gentoo.org>2016-06-30 10:56:31 +0200
commit2d0284d88d1f783ea8caad042678e9b09f1780a1 (patch)
treea8671f59e01e3b21582f640f591bc1e8593e08fc /app-text
parentdev-python/nltk: bump up to 3.2.1, bug #587096 (diff)
downloadgentoo-2d0284d88d1f783ea8caad042678e9b09f1780a1.tar.gz
gentoo-2d0284d88d1f783ea8caad042678e9b09f1780a1.tar.bz2
gentoo-2d0284d88d1f783ea8caad042678e9b09f1780a1.zip
app-text/winefish: New HOMEPAGE/SRC_URI (bug #537716).
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-text')
-rw-r--r--app-text/winefish/Manifest1
-rw-r--r--app-text/winefish/files/winefish-1.3.3-desktop.patch11
-rw-r--r--app-text/winefish/files/winefish-1.3.3-doc.patch13
-rw-r--r--app-text/winefish/files/winefish-1.3.3-memset.patch11
-rw-r--r--app-text/winefish/files/winefish-1.3.3-nostrip.patch6
-rw-r--r--app-text/winefish/files/winefish-1.3.3-version.patch11
-rw-r--r--app-text/winefish/winefish-1.3.3-r2.ebuild54
7 files changed, 103 insertions, 4 deletions
diff --git a/app-text/winefish/Manifest b/app-text/winefish/Manifest
index 0171f6879c70..8c285c88ffb4 100644
--- a/app-text/winefish/Manifest
+++ b/app-text/winefish/Manifest
@@ -1 +1,2 @@
+DIST winefish-1.3.3.tar.gz 485772 SHA256 dab48badeb783a978c456256493345ae260f8847590b096e8a9a6e44dcced16f SHA512 216196694979093f5152eb7e3ccaa1e342b44bde4a054c2b6a72c38451d08cd03c3209f5becab8ce3f3c8aace089253a60dff8d8c2f679bb297b34d0fa1ff19c WHIRLPOOL 857db9e6e565b3d6e609fa2bd945ff98097626421f15f6fd5aa06ed904142e913ce61b64727c7d934fbd39c75cd62c2ee35a32b5908ced19a1e4818f4afa1fcd
DIST winefish-1.3.3.tgz 478063 SHA256 b61a7edf954b0314695a3fc09b3780602d331b676e8ccea5b0aabe0427f6b7c7 SHA512 bc357d01d23ad5eed71e77754804201d0e13be20d6b9338b63b0599aeb174e9d1828f94251755c14494f135a3f53b76614c4a9fcc06467b49a04e07123c557ec WHIRLPOOL cc689a8a2904f938557dae8c79009664ed09da166be651b193d9487a89e0248ce07ebb7bf7016fb8be4c6daf8cd1451f3ecd6458d457e75d47b30d467b11985f
diff --git a/app-text/winefish/files/winefish-1.3.3-desktop.patch b/app-text/winefish/files/winefish-1.3.3-desktop.patch
new file mode 100644
index 000000000000..eaa66eca7dd0
--- /dev/null
+++ b/app-text/winefish/files/winefish-1.3.3-desktop.patch
@@ -0,0 +1,11 @@
+--- a/data/winefish.desktop.in
++++ b/data/winefish.desktop.in
+@@ -7,7 +7,7 @@
+ Icon=ICONDIR/winefish-icon.png
+ Terminal=false
+ Type=Application
+-Categories=GTK;GNOME;Application;Editors;Office;Development;
++Categories=GTK;GNOME;TextEditor;Office;Development;
+ Encoding=UTF-8
+ StartupNotify=true
+ MimeType=text/x-tex;application/winefish-project;text/xml;
diff --git a/app-text/winefish/files/winefish-1.3.3-doc.patch b/app-text/winefish/files/winefish-1.3.3-doc.patch
new file mode 100644
index 000000000000..9e02510e35a8
--- /dev/null
+++ b/app-text/winefish/files/winefish-1.3.3-doc.patch
@@ -0,0 +1,13 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -89,8 +89,8 @@
+ $(INSTALL_DIR) $(DESTDIR)$(pkgdatadir)
+ $(INSTALL_DATA) images/winefish_splash.png $(DESTDIR)$(pkgdatadir)
+ $(INSTALL_DIR) $(DESTDIR)$(docdir)
+- $(INSTALL_DATA) doc/winefish.html $(DESTDIR)$(docdir)
+-# $(INSTALL_DATA) doc/winefish.txt $(DESTDIR)$(docdir)
++# $(INSTALL_DATA) doc/winefish.html $(DESTDIR)$(docdir)
++ $(INSTALL_DATA) doc/winefish.txt $(DESTDIR)$(docdir)
+ @cd icons/ && $(MAKE) install
+ @cd src/ && $(MAKE) install
+ @cd data/ && $(MAKE) install
diff --git a/app-text/winefish/files/winefish-1.3.3-memset.patch b/app-text/winefish/files/winefish-1.3.3-memset.patch
new file mode 100644
index 000000000000..7390642bb690
--- /dev/null
+++ b/app-text/winefish/files/winefish-1.3.3-memset.patch
@@ -0,0 +1,11 @@
+--- a/src/highlight.c
++++ b/src/highlight.c
+@@ -731,7 +731,7 @@
+ GList *tmplist = g_list_first(level);
+ while (tmplist) {
+ Tpattern * pat = (Tpattern *)tmplist->data;
+- memset(pat->ovector,0,sizeof(pat->ovector));
++ memset(pat->ovector,0,sizeof(&pat->ovector));
+ pat->is_match = FALSE;
+ patmatch_init_run(pat->childs);
+ tmplist = g_list_next(tmplist);
diff --git a/app-text/winefish/files/winefish-1.3.3-nostrip.patch b/app-text/winefish/files/winefish-1.3.3-nostrip.patch
index b1118ebfc4d4..24f21e49d307 100644
--- a/app-text/winefish/files/winefish-1.3.3-nostrip.patch
+++ b/app-text/winefish/files/winefish-1.3.3-nostrip.patch
@@ -1,7 +1,5 @@
-Index: winefish-1.3.3/src/Makefile.in
-===================================================================
---- winefish-1.3.3.orig/src/Makefile.in
-+++ winefish-1.3.3/src/Makefile.in
+--- a/src/Makefile.in
++++ b/src/Makefile.in
@@ -37,7 +37,7 @@ LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@
diff --git a/app-text/winefish/files/winefish-1.3.3-version.patch b/app-text/winefish/files/winefish-1.3.3-version.patch
new file mode 100644
index 000000000000..a586608719d9
--- /dev/null
+++ b/app-text/winefish/files/winefish-1.3.3-version.patch
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -23,7 +23,7 @@
+ AC_CONFIG_HEADER(src/config.h)
+
+ PACKAGE=winefish
+-VERSION=1.3.2
++VERSION=1.3.3
+ AC_SUBST(PACKAGE)
+ AC_SUBST(VERSION)
+ AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
diff --git a/app-text/winefish/winefish-1.3.3-r2.ebuild b/app-text/winefish/winefish-1.3.3-r2.ebuild
new file mode 100644
index 000000000000..044738c4514a
--- /dev/null
+++ b/app-text/winefish/winefish-1.3.3-r2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit autotools eutils fdo-mime
+
+MY_PV=${PV/%[[:alpha:]]/}
+
+DESCRIPTION="LaTeX editor based on Bluefish"
+HOMEPAGE="https://github.com/viettug/winefish"
+SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="spell"
+
+RDEPEND="
+ >=dev-libs/libpcre-6.3
+ >=x11-libs/gtk+-2.4:2
+ spell? ( app-text/aspell )
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-desktop.patch
+ "${FILESDIR}"/${P}-doc.patch
+ "${FILESDIR}"/${P}-memset.patch
+ "${FILESDIR}"/${P}-nostrip.patch
+ "${FILESDIR}"/${P}-version.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-update-databases
+}
+
+src_install() {
+ emake install DESTDIR="${D}" docdir=/usr/share/doc/${PF}/html
+ dodoc AUTHORS CHANGES README ROADMAP THANKS TODO
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+}