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-2.25.ebuild ChangeLog
Date: Sat, 07 May 2011 21:58:02
Message-Id: 20110507215749.EFB1720054@flycatcher.gentoo.org
1 nelchael 11/05/07 21:57:49
2
3 Modified: ChangeLog
4 Added: scite-2.25.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.9.47/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.112 app-editors/scite/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/ChangeLog?rev=1.112&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/ChangeLog?rev=1.112&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/ChangeLog?r1=1.111&r2=1.112
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v
20 retrieving revision 1.111
21 retrieving revision 1.112
22 diff -u -r1.111 -r1.112
23 --- ChangeLog 27 Mar 2011 10:20:54 -0000 1.111
24 +++ ChangeLog 7 May 2011 21:57:49 -0000 1.112
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.111 2011/03/27 10:20:54 nirbheek Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-editors/scite/ChangeLog,v 1.112 2011/05/07 21:57:49 nelchael Exp $
30 +
31 +*scite-2.25 (07 May 2011)
32 +
33 + 07 May 2011; Krzysztof Pawlik <nelchael@g.o> +scite-2.25.ebuild:
34 + Version bump.
35
36 27 Mar 2011; Nirbheek Chauhan <nirbheek@g.o> scite-2.22.ebuild,
37 scite-2.24.ebuild:
38
39
40
41 1.1 app-editors/scite/scite-2.25.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/scite-2.25.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-editors/scite/scite-2.25.ebuild?rev=1.1&content-type=text/plain
45
46 Index: scite-2.25.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-editors/scite/scite-2.25.ebuild,v 1.1 2011/05/07 21:57:49 nelchael Exp $
51
52 EAPI="1"
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="Scintilla"
62 SLOT="0"
63 KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
64 IUSE="lua"
65
66 RDEPEND="x11-libs/gtk+:2
67 lua? ( >=dev-lang/lua-5 )"
68 DEPEND="${RDEPEND}
69 dev-util/pkgconfig
70 >=sys-apps/sed-4"
71
72 S="${WORKDIR}/${PN}/gtk"
73
74 src_unpack() {
75 unpack ${A}
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}-2.12-install.patch"
102 epatch "${FILESDIR}/${PN}-2.12-no-lua.patch"
103 }
104
105 src_compile() {
106 make -C ../../scintilla/gtk || die "prep make failed"
107 if use lua; then
108 emake || die "make failed"
109 else
110 emake NO_LUA=1 || die "make failed"
111 fi
112 }
113
114 src_install() {
115 dodir /usr/bin
116 dodir /usr/share/{pixmaps,applications}
117
118 make prefix="${D}/usr" install || die
119
120 # we have to keep this because otherwise it'll break upgrading
121 mv "${D}/usr/bin/SciTE" "${D}/usr/bin/scite"
122 dosym /usr/bin/scite /usr/bin/SciTE
123
124 # replace .desktop file with our own working version
125 insinto /usr/share/applications
126 rm -f "${D}/usr/share/applications/SciTE.desktop"
127 doins "${FILESDIR}/scite.desktop"
128
129 doman ../doc/scite.1
130 dodoc ../README
131 }