1 |
commit: 2d0284d88d1f783ea8caad042678e9b09f1780a1 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 30 08:55:36 2016 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 30 08:56:31 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d0284d8 |
7 |
|
8 |
app-text/winefish: New HOMEPAGE/SRC_URI (bug #537716). |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
app-text/winefish/Manifest | 1 + |
13 |
.../winefish/files/winefish-1.3.3-desktop.patch | 11 +++++ |
14 |
app-text/winefish/files/winefish-1.3.3-doc.patch | 13 ++++++ |
15 |
.../winefish/files/winefish-1.3.3-memset.patch | 11 +++++ |
16 |
.../winefish/files/winefish-1.3.3-nostrip.patch | 6 +-- |
17 |
.../winefish/files/winefish-1.3.3-version.patch | 11 +++++ |
18 |
app-text/winefish/winefish-1.3.3-r2.ebuild | 54 ++++++++++++++++++++++ |
19 |
7 files changed, 103 insertions(+), 4 deletions(-) |
20 |
|
21 |
diff --git a/app-text/winefish/Manifest b/app-text/winefish/Manifest |
22 |
index 0171f68..8c285c8 100644 |
23 |
--- a/app-text/winefish/Manifest |
24 |
+++ b/app-text/winefish/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
+DIST winefish-1.3.3.tar.gz 485772 SHA256 dab48badeb783a978c456256493345ae260f8847590b096e8a9a6e44dcced16f SHA512 216196694979093f5152eb7e3ccaa1e342b44bde4a054c2b6a72c38451d08cd03c3209f5becab8ce3f3c8aace089253a60dff8d8c2f679bb297b34d0fa1ff19c WHIRLPOOL 857db9e6e565b3d6e609fa2bd945ff98097626421f15f6fd5aa06ed904142e913ce61b64727c7d934fbd39c75cd62c2ee35a32b5908ced19a1e4818f4afa1fcd |
27 |
DIST winefish-1.3.3.tgz 478063 SHA256 b61a7edf954b0314695a3fc09b3780602d331b676e8ccea5b0aabe0427f6b7c7 SHA512 bc357d01d23ad5eed71e77754804201d0e13be20d6b9338b63b0599aeb174e9d1828f94251755c14494f135a3f53b76614c4a9fcc06467b49a04e07123c557ec WHIRLPOOL cc689a8a2904f938557dae8c79009664ed09da166be651b193d9487a89e0248ce07ebb7bf7016fb8be4c6daf8cd1451f3ecd6458d457e75d47b30d467b11985f |
28 |
|
29 |
diff --git a/app-text/winefish/files/winefish-1.3.3-desktop.patch b/app-text/winefish/files/winefish-1.3.3-desktop.patch |
30 |
new file mode 100644 |
31 |
index 0000000..eaa66ec |
32 |
--- /dev/null |
33 |
+++ b/app-text/winefish/files/winefish-1.3.3-desktop.patch |
34 |
@@ -0,0 +1,11 @@ |
35 |
+--- a/data/winefish.desktop.in |
36 |
++++ b/data/winefish.desktop.in |
37 |
+@@ -7,7 +7,7 @@ |
38 |
+ Icon=ICONDIR/winefish-icon.png |
39 |
+ Terminal=false |
40 |
+ Type=Application |
41 |
+-Categories=GTK;GNOME;Application;Editors;Office;Development; |
42 |
++Categories=GTK;GNOME;TextEditor;Office;Development; |
43 |
+ Encoding=UTF-8 |
44 |
+ StartupNotify=true |
45 |
+ MimeType=text/x-tex;application/winefish-project;text/xml; |
46 |
|
47 |
diff --git a/app-text/winefish/files/winefish-1.3.3-doc.patch b/app-text/winefish/files/winefish-1.3.3-doc.patch |
48 |
new file mode 100644 |
49 |
index 0000000..9e02510 |
50 |
--- /dev/null |
51 |
+++ b/app-text/winefish/files/winefish-1.3.3-doc.patch |
52 |
@@ -0,0 +1,13 @@ |
53 |
+--- a/Makefile.in |
54 |
++++ b/Makefile.in |
55 |
+@@ -89,8 +89,8 @@ |
56 |
+ $(INSTALL_DIR) $(DESTDIR)$(pkgdatadir) |
57 |
+ $(INSTALL_DATA) images/winefish_splash.png $(DESTDIR)$(pkgdatadir) |
58 |
+ $(INSTALL_DIR) $(DESTDIR)$(docdir) |
59 |
+- $(INSTALL_DATA) doc/winefish.html $(DESTDIR)$(docdir) |
60 |
+-# $(INSTALL_DATA) doc/winefish.txt $(DESTDIR)$(docdir) |
61 |
++# $(INSTALL_DATA) doc/winefish.html $(DESTDIR)$(docdir) |
62 |
++ $(INSTALL_DATA) doc/winefish.txt $(DESTDIR)$(docdir) |
63 |
+ @cd icons/ && $(MAKE) install |
64 |
+ @cd src/ && $(MAKE) install |
65 |
+ @cd data/ && $(MAKE) install |
66 |
|
67 |
diff --git a/app-text/winefish/files/winefish-1.3.3-memset.patch b/app-text/winefish/files/winefish-1.3.3-memset.patch |
68 |
new file mode 100644 |
69 |
index 0000000..7390642 |
70 |
--- /dev/null |
71 |
+++ b/app-text/winefish/files/winefish-1.3.3-memset.patch |
72 |
@@ -0,0 +1,11 @@ |
73 |
+--- a/src/highlight.c |
74 |
++++ b/src/highlight.c |
75 |
+@@ -731,7 +731,7 @@ |
76 |
+ GList *tmplist = g_list_first(level); |
77 |
+ while (tmplist) { |
78 |
+ Tpattern * pat = (Tpattern *)tmplist->data; |
79 |
+- memset(pat->ovector,0,sizeof(pat->ovector)); |
80 |
++ memset(pat->ovector,0,sizeof(&pat->ovector)); |
81 |
+ pat->is_match = FALSE; |
82 |
+ patmatch_init_run(pat->childs); |
83 |
+ tmplist = g_list_next(tmplist); |
84 |
|
85 |
diff --git a/app-text/winefish/files/winefish-1.3.3-nostrip.patch b/app-text/winefish/files/winefish-1.3.3-nostrip.patch |
86 |
index b1118eb..24f21e4 100644 |
87 |
--- a/app-text/winefish/files/winefish-1.3.3-nostrip.patch |
88 |
+++ b/app-text/winefish/files/winefish-1.3.3-nostrip.patch |
89 |
@@ -1,7 +1,5 @@ |
90 |
-Index: winefish-1.3.3/src/Makefile.in |
91 |
-=================================================================== |
92 |
---- winefish-1.3.3.orig/src/Makefile.in |
93 |
-+++ winefish-1.3.3/src/Makefile.in |
94 |
+--- a/src/Makefile.in |
95 |
++++ b/src/Makefile.in |
96 |
@@ -37,7 +37,7 @@ LDFLAGS = @LDFLAGS@ |
97 |
LIBS = @LIBS@ |
98 |
INSTALL = @INSTALL@ |
99 |
|
100 |
diff --git a/app-text/winefish/files/winefish-1.3.3-version.patch b/app-text/winefish/files/winefish-1.3.3-version.patch |
101 |
new file mode 100644 |
102 |
index 0000000..a586608 |
103 |
--- /dev/null |
104 |
+++ b/app-text/winefish/files/winefish-1.3.3-version.patch |
105 |
@@ -0,0 +1,11 @@ |
106 |
+--- a/configure.ac |
107 |
++++ b/configure.ac |
108 |
+@@ -23,7 +23,7 @@ |
109 |
+ AC_CONFIG_HEADER(src/config.h) |
110 |
+ |
111 |
+ PACKAGE=winefish |
112 |
+-VERSION=1.3.2 |
113 |
++VERSION=1.3.3 |
114 |
+ AC_SUBST(PACKAGE) |
115 |
+ AC_SUBST(VERSION) |
116 |
+ AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") |
117 |
|
118 |
diff --git a/app-text/winefish/winefish-1.3.3-r2.ebuild b/app-text/winefish/winefish-1.3.3-r2.ebuild |
119 |
new file mode 100644 |
120 |
index 0000000..044738c |
121 |
--- /dev/null |
122 |
+++ b/app-text/winefish/winefish-1.3.3-r2.ebuild |
123 |
@@ -0,0 +1,54 @@ |
124 |
+# Copyright 1999-2016 Gentoo Foundation |
125 |
+# Distributed under the terms of the GNU General Public License v2 |
126 |
+# $Id$ |
127 |
+ |
128 |
+EAPI=6 |
129 |
+inherit autotools eutils fdo-mime |
130 |
+ |
131 |
+MY_PV=${PV/%[[:alpha:]]/} |
132 |
+ |
133 |
+DESCRIPTION="LaTeX editor based on Bluefish" |
134 |
+HOMEPAGE="https://github.com/viettug/winefish" |
135 |
+SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
136 |
+ |
137 |
+LICENSE="GPL-2" |
138 |
+SLOT="0" |
139 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
140 |
+IUSE="spell" |
141 |
+ |
142 |
+RDEPEND=" |
143 |
+ >=dev-libs/libpcre-6.3 |
144 |
+ >=x11-libs/gtk+-2.4:2 |
145 |
+ spell? ( app-text/aspell ) |
146 |
+" |
147 |
+DEPEND=" |
148 |
+ ${RDEPEND} |
149 |
+ virtual/pkgconfig |
150 |
+" |
151 |
+ |
152 |
+PATCHES=( |
153 |
+ "${FILESDIR}"/${P}-desktop.patch |
154 |
+ "${FILESDIR}"/${P}-doc.patch |
155 |
+ "${FILESDIR}"/${P}-memset.patch |
156 |
+ "${FILESDIR}"/${P}-nostrip.patch |
157 |
+ "${FILESDIR}"/${P}-version.patch |
158 |
+) |
159 |
+ |
160 |
+src_prepare() { |
161 |
+ default |
162 |
+ eautoreconf |
163 |
+} |
164 |
+ |
165 |
+src_configure() { |
166 |
+ econf --disable-update-databases |
167 |
+} |
168 |
+ |
169 |
+src_install() { |
170 |
+ emake install DESTDIR="${D}" docdir=/usr/share/doc/${PF}/html |
171 |
+ dodoc AUTHORS CHANGES README ROADMAP THANKS TODO |
172 |
+} |
173 |
+ |
174 |
+pkg_postinst() { |
175 |
+ fdo-mime_desktop_database_update |
176 |
+ fdo-mime_mime_database_update |
177 |
+} |