Gentoo Archives: gentoo-commits

From: "Agostino Sarubbo (ago)" <ago@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-editors/scite: scite-3.3.9.ebuild ChangeLog scite-3.3.4.ebuild scite-3.3.6.ebuild scite-3.3.3.ebuild
Date: Thu, 06 Feb 2014 05:56:34
Message-Id: 20140206055630.179362004C@flycatcher.gentoo.org
1 ago 14/02/06 05:56:30
2
3 Modified: ChangeLog
4 Added: scite-3.3.9.ebuild
5 Removed: scite-3.3.4.ebuild scite-3.3.6.ebuild
6 scite-3.3.3.ebuild
7 Log:
8 Version bump to 3.3.9, wrt bug #500188 - Remove old
9
10 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 7194459F)
11
12 Revision Changes Path
13 1.169 app-editors/scite/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/ChangeLog?rev=1.169&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/ChangeLog?rev=1.169&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/ChangeLog?r1=1.168&r2=1.169
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v
22 retrieving revision 1.168
23 retrieving revision 1.169
24 diff -u -r1.168 -r1.169
25 --- ChangeLog 21 Dec 2013 16:10:50 -0000 1.168
26 +++ ChangeLog 6 Feb 2014 05:56:29 -0000 1.169
27 @@ -1,6 +1,12 @@
28 # ChangeLog for app-editors/scite
29 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v 1.168 2013/12/21 16:10:50 ago Exp $
31 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
32 +# $Header: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v 1.169 2014/02/06 05:56:29 ago Exp $
33 +
34 +*scite-3.3.9 (06 Feb 2014)
35 +
36 + 06 Feb 2014; Agostino Sarubbo <ago@g.o> +scite-3.3.9.ebuild,
37 + -scite-3.3.3.ebuild, -scite-3.3.4.ebuild, -scite-3.3.6.ebuild:
38 + Version bump to 3.3.9, wrt bug #500188 - Remove old
39
40 21 Dec 2013; Agostino Sarubbo <ago@g.o> scite-3.3.5.ebuild:
41 Stable for ppc, wrt bug #490088
42
43
44
45 1.1 app-editors/scite/scite-3.3.9.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/scite-3.3.9.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/scite-3.3.9.ebuild?rev=1.1&content-type=text/plain
49
50 Index: scite-3.3.9.ebuild
51 ===================================================================
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/app-editors/scite/scite-3.3.9.ebuild,v 1.1 2014/02/06 05:56:29 ago Exp $
55
56 EAPI="4"
57
58 inherit toolchain-funcs eutils
59
60 MY_PV=${PV//./}
61 DESCRIPTION="A very powerful editor for programmers"
62 HOMEPAGE="http://www.scintilla.org/SciTE.html"
63 SRC_URI="mirror://sourceforge/scintilla/${PN}${MY_PV}.tgz"
64
65 LICENSE="HPND lua? ( MIT )"
66 SLOT="0"
67 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux"
68 IUSE="lua"
69
70 RDEPEND="dev-libs/glib
71 x11-libs/cairo
72 x11-libs/gtk+:2
73 x11-libs/gdk-pixbuf
74 x11-libs/pango
75 lua? ( >=dev-lang/lua-5 )"
76 DEPEND="${RDEPEND}
77 virtual/pkgconfig
78 >=sys-apps/sed-4"
79
80 S="${WORKDIR}/${PN}/gtk"
81
82 src_prepare() {
83 cd "${WORKDIR}/scintilla/gtk"
84 sed -i makefile \
85 -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \
86 -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \
87 -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \
88 -e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \
89 -e "s#-Os##" \
90 || die "error patching makefile"
91
92 cd "${WORKDIR}/scite/gtk"
93 sed -i makefile \
94 -e "s#-rdynamic#-rdynamic ${LDFLAGS}#" \
95 || die "error patching makefile"
96
97 cd "${S}"
98 sed -i makefile \
99 -e 's#usr/local#usr#g' \
100 -e 's#/gnome/apps/Applications#/applications#' \
101 -e "s#^CXXFLAGS=#CXXFLAGS=${CXXFLAGS} #" \
102 -e "s#^\(CXXFLAGS=.*\)-Os#\1#" \
103 -e "s#^CC =\(.*\)#CC = $(tc-getCXX)#" \
104 -e "s#^CCOMP =\(.*\)#CCOMP = $(tc-getCC)#" \
105 -e 's#${D}##' \
106 -e 's#-g root#-g 0#' \
107 -e "s#-Os##" \
108 || die "error patching makefile"
109 cd "${WORKDIR}"
110 epatch "${FILESDIR}/${PN}-3.0.1-no-lua.patch"
111 }
112
113 src_compile() {
114 emake -C ../../scintilla/gtk AR="$(tc-getAR)"
115 if use lua; then
116 emake
117 else
118 emake NO_LUA=1
119 fi
120 }
121
122 src_install() {
123 dodir /usr/bin
124 dodir /usr/share/{pixmaps,applications}
125
126 emake prefix="${ED}/usr" install
127
128 # we have to keep this because otherwise it'll break upgrading
129 mv "${ED}/usr/bin/SciTE" "${ED}/usr/bin/scite" || die
130 dosym /usr/bin/scite /usr/bin/SciTE
131
132 # replace .desktop file with our own working version
133 rm -f "${ED}/usr/share/applications/SciTE.desktop"
134 domenu "${FILESDIR}/scite.desktop"
135
136 doman ../doc/scite.1
137 dodoc ../README
138 }