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