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