Gentoo Archives: gentoo-commits

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