Gentoo Archives: gentoo-commits

From: "Alin Nastac (mrness)" <mrness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/nsis: metadata.xml ChangeLog nsis-2.45.ebuild nsis-2.40.ebuild
Date: Sun, 28 Jun 2009 10:02:26
Message-Id: E1MKrDM-0004dL-5P@stork.gentoo.org
1 mrness 09/06/28 10:02:24
2
3 Modified: metadata.xml ChangeLog
4 Added: nsis-2.45.ebuild
5 Removed: nsis-2.40.ebuild
6 Log:
7 Version bump (#275605).
8 (Portage version: 2.1.6.13/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.5 dev-util/nsis/metadata.xml
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/metadata.xml?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/metadata.xml?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/metadata.xml?r1=1.4&r2=1.5
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/nsis/metadata.xml,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- metadata.xml 23 Aug 2008 05:44:40 -0000 1.4
24 +++ metadata.xml 28 Jun 2009 10:02:24 -0000 1.5
25 @@ -22,6 +22,5 @@
26 </longdescription>
27 <use>
28 <flag name="config-log">Enable the logging facility (useful in debugging installers)</flag>
29 - <flag name="prebuilt-system">Use the pre-compiled System.dll from the release to workaround the System::Call issue under GCC</flag>
30 </use>
31 </pkgmetadata>
32
33
34
35 1.32 dev-util/nsis/ChangeLog
36
37 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/ChangeLog?rev=1.32&view=markup
38 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/ChangeLog?rev=1.32&content-type=text/plain
39 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/ChangeLog?r1=1.31&r2=1.32
40
41 Index: ChangeLog
42 ===================================================================
43 RCS file: /var/cvsroot/gentoo-x86/dev-util/nsis/ChangeLog,v
44 retrieving revision 1.31
45 retrieving revision 1.32
46 diff -u -r1.31 -r1.32
47 --- ChangeLog 9 May 2009 12:36:42 -0000 1.31
48 +++ ChangeLog 28 Jun 2009 10:02:24 -0000 1.32
49 @@ -1,6 +1,12 @@
50 # ChangeLog for dev-util/nsis
51 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
52 -# $Header: /var/cvsroot/gentoo-x86/dev-util/nsis/ChangeLog,v 1.31 2009/05/09 12:36:42 mrness Exp $
53 +# $Header: /var/cvsroot/gentoo-x86/dev-util/nsis/ChangeLog,v 1.32 2009/06/28 10:02:24 mrness Exp $
54 +
55 +*nsis-2.45 (28 Jun 2009)
56 +
57 + 28 Jun 2009; Alin Năstac <mrness@g.o> metadata.xml,
58 + -nsis-2.40.ebuild, +nsis-2.45.ebuild:
59 + Version bump (#275605).
60
61 09 May 2009; Alin Năstac <mrness@g.o> nsis-2.44.ebuild:
62 Migrate to EAPI 2. Stable on x86.
63
64
65
66 1.1 dev-util/nsis/nsis-2.45.ebuild
67
68 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/nsis-2.45.ebuild?rev=1.1&view=markup
69 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/nsis-2.45.ebuild?rev=1.1&content-type=text/plain
70
71 Index: nsis-2.45.ebuild
72 ===================================================================
73 # Copyright 1999-2009 Gentoo Foundation
74 # Distributed under the terms of the GNU General Public License v2
75 # $Header: /var/cvsroot/gentoo-x86/dev-util/nsis/nsis-2.45.ebuild,v 1.1 2009/06/28 10:02:24 mrness Exp $
76
77 EAPI="2"
78 mingw32_variants=$(echo {,i{6,5,4,3}86-{,pc-}}mingw32)
79
80 DESCRIPTION="Nullsoft Scriptable Install System"
81 HOMEPAGE="http://nsis.sourceforge.net/"
82 SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2"
83
84 LICENSE="as-is"
85 SLOT="0"
86 KEYWORDS="~amd64 ~ppc ~x86"
87 IUSE="bzip2 config-log doc zlib"
88
89 # NSIS Menu uses wxwindows but it's all broken, so disable for now
90 # wxwindows? ( x11-libs/wxGTK )
91 RDEPEND="bzip2? ( app-arch/bzip2 )
92 zlib? ( sys-libs/zlib )"
93 DEPEND="${RDEPEND}
94 >=dev-util/scons-0.98"
95
96 S="${WORKDIR}"/${P}-src
97
98 mingw_CTARGET() {
99 local i
100 for i in ${mingw32_variants} ; do
101 type -P ${i}-gcc > /dev/null && echo ${i} && return
102 done
103 }
104
105 pkg_setup() {
106 [[ -n $(mingw_CTARGET) ]] && return 0
107
108 local i
109 eerror "Before you could emerge nsis, you need to install mingw32."
110 eerror "Run the following command:"
111 eerror " emerge crossdev"
112 eerror "then run _one_ of the following commands:"
113 for i in ${mingw32_variants} ; do
114 eerror " crossdev ${i}"
115 done
116 die "mingw32 is needed"
117 }
118
119 src_prepare() {
120 # a dirty but effective way of killing generated docs
121 use doc || echo > Docs/src/SConscript
122 }
123
124 get_additional_options() {
125 echo \
126 PREFIX=/usr \
127 PREFIX_CONF=/etc \
128 PREFIX_DOC=/usr/share/doc/${PF} \
129 PREFIX_DEST=\"${D}\" \
130 VERSION=${PV} \
131 DEBUG=no \
132 STRIP=no
133 echo \
134 SKIPSTUBS=\"$(use zlib || echo zlib) $(use bzip2 || echo bzip2)\" \
135 SKIPUTILS=\"NSIS Menu\"
136 use config-log && echo NSIS_CONFIG_LOG=yes
137 # remove the following line when nsis bug 1753070 will be fixed
138 use amd64 && echo APPEND_CCFLAGS=-m32 APPEND_LINKFLAGS=-m32
139 }
140
141 do_scons() {
142 local cmd=$1
143 eval set -- $(get_additional_options)
144 echo scons $(get_additional_options) ${cmd}
145 scons "$@" ${cmd}
146 }
147
148 src_compile() {
149 do_scons || die "scons failed"
150 }
151
152 src_install() {
153 do_scons install || die "scons failed"
154 use doc || rm -rf "${D}"/usr/share/doc/${PF}/{Docs,Examples}
155
156 fperms -R go-w,a-x,a+X /usr/share/${PN}/ /usr/share/doc/${PF}/ /etc/nsisconf.nsh
157
158 src_strip_win32
159 }
160
161 src_strip_win32() {
162 # need to strip win32 binaries ourselves ... should fold this
163 # back in to prepstrip at some point
164 local STRIP_PROG=$(mingw_CTARGET)-strip
165 local STRIP_FLAGS="--strip-unneeded"
166
167 echo
168 echo "strip: ${STRIP_PROG} ${STRIP_FLAGS}"
169 local FILE
170 for FILE in $(find "${D}" -iregex '.*\.\(dll\|exe\)$') ; do
171 echo " ${FILE#${D}}"
172 ${STRIP_PROG} ${STRIP_FLAGS} "${FILE}"
173 done
174 }