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