1 |
commit: 1623f7367ad0ad21ee210a11ddc4aa06cd375fce |
2 |
Author: Jonas Stein <jstein <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 13 00:28:07 2017 +0000 |
4 |
Commit: Jonas Stein <jstein <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 13 19:50:50 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1623f736 |
7 |
|
8 |
app-editors/scite: Version bump to 4.0.2 |
9 |
|
10 |
Version bump to 4.0.2 |
11 |
bump to EAPI=6 |
12 |
add missing xdg-utils eclass |
13 |
|
14 |
Package-Manager: Portage-2.3.13, Repoman-2.3.4 |
15 |
|
16 |
app-editors/scite/Manifest | 1 + |
17 |
app-editors/scite/scite-4.0.2.ebuild | 114 +++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 115 insertions(+) |
19 |
|
20 |
diff --git a/app-editors/scite/Manifest b/app-editors/scite/Manifest |
21 |
index 2a42302ccb3..fc55861af01 100644 |
22 |
--- a/app-editors/scite/Manifest |
23 |
+++ b/app-editors/scite/Manifest |
24 |
@@ -2,3 +2,4 @@ DIST scite355.tgz 2302137 SHA256 20515597ac986f1727c97bda2c27d88487ddb79cfe330b0 |
25 |
DIST scite362.tgz 2368491 SHA256 6530d0d86c72485b815663e3b2c2987d59779340a71632ed8bb97a43530737a3 SHA512 cb9618e962a16db7484e16a494b3da39f210250277e9772b112af5e16649b38f27ead0ec61664b1211c9263880cb7f3c34b5b32d94a4e70087fb1503805740c1 WHIRLPOOL 52a31f0e1518a9d8f6107aa22eead7da89e1d1ea6523a2aae57fbd7a3a8ecbd192c124c3d2550acea6383457763d6e501b14791ec6490a54379c5d13356e42da |
26 |
DIST scite364.tgz 2386959 SHA256 6a27a1062b838e0fe914fb045f265935e5d39e34d69ae894b55f971437192baa SHA512 eaba353edac23902a8f446fb8877f3e5dd43221e5289bc38941d76068a3f7c87602e9eb5828e6caafec56657d05b5268aad2a1bb36356a14154de3c22602c76d WHIRLPOOL f1b4c64eb4a5c6d6e73ffb3f457a5b5ddf8d31cf5f5778b204c05a093bcfb8e78e7a8cab634cf369ce29f200c11b933492f01c30afb268f581d465ed31157c88 |
27 |
DIST scite365.tgz 2391190 SHA256 dde62ebebbd4c36afd81ab0e745ff04839f4cfc911496f2d0463aade1374b9d1 SHA512 193dcb1f8787a7c7d520ce62462e5c95e7b6bcaf79f4ab23f9885474fb0444dbc5a69a0d45eafc592e5fff2a2e746a9aba599799e847e3c74d3436eed26580a9 WHIRLPOOL e79a2f05444c16f40f6c84fd252d3b71247a48f6af27f912d3f51de99b968c93ec505bc903aa4df407d1ff503f3ce35052004c46e3f7fe8502d0d0ef4939610e |
28 |
+DIST scite402.tgz 2424648 SHA256 1f9bb8eccbaed77c110c30c0e6dbaac04b3f62b751a930192b133a7b6f0f29fb SHA512 97898cbb8675d013dd91828792de1c71e3f013b21c59c5112ddc00e7ee35c2ba8cc29e2c3256b91171e052145a25cddfd0034505e3c185999c734504bb702283 WHIRLPOOL 0de24e65f718c49d183ee44520b7b46249dfb41eaa6d2b35e79b6b31e53c0f308c919c99f5c8b704a8d9d606e023306bcab4b3acd8339fd29e57d1a467bdc68f |
29 |
|
30 |
diff --git a/app-editors/scite/scite-4.0.2.ebuild b/app-editors/scite/scite-4.0.2.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..e8a034593e4 |
33 |
--- /dev/null |
34 |
+++ b/app-editors/scite/scite-4.0.2.ebuild |
35 |
@@ -0,0 +1,114 @@ |
36 |
+# Copyright 1999-2017 Gentoo Foundation |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=6 |
40 |
+ |
41 |
+inherit toolchain-funcs eutils flag-o-matic gnome2-utils xdg-utils |
42 |
+ |
43 |
+MY_PV=${PV//./} |
44 |
+DESCRIPTION="A very powerful, highly configurable, small editor with syntax |
45 |
+coloring." |
46 |
+HOMEPAGE="http://www.scintilla.org/SciTE.html" |
47 |
+SRC_URI="mirror://sourceforge/scintilla/${PN}${MY_PV}.tgz" |
48 |
+ |
49 |
+LICENSE="HPND lua? ( MIT )" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" |
52 |
+IUSE="lua" |
53 |
+ |
54 |
+RDEPEND="dev-libs/glib:= |
55 |
+ x11-libs/cairo |
56 |
+ x11-libs/gtk+:3= |
57 |
+ x11-libs/gdk-pixbuf |
58 |
+ x11-libs/pango |
59 |
+ lua? ( >=dev-lang/lua-5:= )" |
60 |
+ |
61 |
+DEPEND="${RDEPEND} |
62 |
+ virtual/pkgconfig" |
63 |
+ |
64 |
+S="${WORKDIR}/${PN}/gtk" |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ sed -i "${WORKDIR}/scintilla/gtk/makefile" \ |
68 |
+ -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \ |
69 |
+ -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \ |
70 |
+ -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \ |
71 |
+ -e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \ |
72 |
+ -e "s#-Os##" \ |
73 |
+ || die "error patching /scintilla/gtk/makefile" |
74 |
+ |
75 |
+ sed -i "${WORKDIR}/scite/gtk/makefile" \ |
76 |
+ -e "s#-rdynamic#-rdynamic ${LDFLAGS}#" \ |
77 |
+ || die "error patching /scite/gtk/makefile" |
78 |
+ |
79 |
+ # add the ebuild suffix as shell type for working with ebuilds |
80 |
+ sed -i "${WORKDIR}/scite/src/perl.properties" \ |
81 |
+ -e "s#\*.sh;\*.bsh;#\*.ebuild;\*.sh;\*.bsh;#" \ |
82 |
+ || die "error patching /scite/src/perl.prperties" |
83 |
+ |
84 |
+ # repair and enhance the .desktop file |
85 |
+ sed -i "${WORKDIR}/scite/gtk/SciTE.desktop" \ |
86 |
+ -e "s/^Encoding/#Encoding/" \ |
87 |
+ -e "s#text/plain#text/\*;application/xhtml+xml#" \ |
88 |
+ -e "s#^Categories=\(.*\)#Categories=Development;#" \ |
89 |
+ || die "error patching /scite/gtk/SciTe.desktop" |
90 |
+ |
91 |
+ sed -i "${S}/makefile" \ |
92 |
+ -e 's#usr/local#usr#g' \ |
93 |
+ -e 's#/gnome/apps/Applications#/applications#' \ |
94 |
+ -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \ |
95 |
+ -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \ |
96 |
+ -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \ |
97 |
+ -e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \ |
98 |
+ -e 's#${D}##' \ |
99 |
+ -e 's#-g root#-g 0#' \ |
100 |
+ -e "s#-Os##" \ |
101 |
+ || die "error patching gtk/makefile" |
102 |
+ |
103 |
+ # it seems that pwd here is ${S}, but user patches are relative to ${workdir} |
104 |
+ # Bug #576162 |
105 |
+ |
106 |
+ cd "${WORKDIR}" |
107 |
+ eapply_user |
108 |
+} |
109 |
+ |
110 |
+src_compile() { |
111 |
+ # prepare make options |
112 |
+ emake_pars="GTK3=1" |
113 |
+ if ! use lua; then |
114 |
+ emake_pars+=" NO_LUA=1" |
115 |
+ fi; |
116 |
+ |
117 |
+ emake CC="$(tc-getCC)" LD="$(tc-getLD)" \ |
118 |
+ LDFLAGS="$(raw-ldflags)" AR="$(tc-getAR)" \ |
119 |
+ -C "${WORKDIR}/scintilla/gtk" $emake_pars |
120 |
+ emake $emake_pars |
121 |
+} |
122 |
+ |
123 |
+src_install() { |
124 |
+ dodir /usr/bin |
125 |
+ dodir /usr/share/{pixmaps,applications} |
126 |
+ |
127 |
+ emake DESTDIR="${ED}" install |
128 |
+ |
129 |
+ # we have to keep this because otherwise it'll break upgrading |
130 |
+ mv "${ED}/usr/bin/SciTE" "${ED}/usr/bin/scite" || die |
131 |
+ dosym "scite" "/usr/bin/SciTE" |
132 |
+ |
133 |
+ doman ../doc/scite.1 |
134 |
+ dodoc ../README |
135 |
+} |
136 |
+ |
137 |
+pkg_preinst() { |
138 |
+ gnome2_icon_savelist |
139 |
+} |
140 |
+ |
141 |
+pkg_postinst() { |
142 |
+ gnome2_icon_cache_update |
143 |
+ xdg_desktop_database_update |
144 |
+} |
145 |
+ |
146 |
+pkg_postrm() { |
147 |
+ gnome2_icon_cache_update |
148 |
+ xdg_desktop_database_update |
149 |
+} |