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: ChangeLog nsis-2.40.ebuild
Date: Sun, 19 Oct 2008 12:15:46
Message-Id: E1KrXCB-0002hm-Vh@stork.gentoo.org
1 mrness 08/10/19 12:15:43
2
3 Modified: ChangeLog
4 Added: nsis-2.40.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.25 dev-util/nsis/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/ChangeLog?rev=1.25&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/ChangeLog?rev=1.25&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/ChangeLog?r1=1.24&r2=1.25
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/nsis/ChangeLog,v
19 retrieving revision 1.24
20 retrieving revision 1.25
21 diff -u -r1.24 -r1.25
22 --- ChangeLog 22 Aug 2008 03:33:53 -0000 1.24
23 +++ ChangeLog 19 Oct 2008 12:15:43 -0000 1.25
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-util/nsis
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/nsis/ChangeLog,v 1.24 2008/08/22 03:33:53 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/nsis/ChangeLog,v 1.25 2008/10/19 12:15:43 mrness Exp $
29 +
30 +*nsis-2.40 (19 Oct 2008)
31 +
32 + 19 Oct 2008; Alin Năstac <mrness@g.o> +nsis-2.40.ebuild:
33 + Version bump.
34
35 22 Aug 2008; Mike Frysinger <vapier@g.o> nsis-2.39.ebuild:
36 Add USE=doc to disable generation/installation of extraneous docs.
37
38
39
40 1.1 dev-util/nsis/nsis-2.40.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/nsis-2.40.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nsis/nsis-2.40.ebuild?rev=1.1&content-type=text/plain
44
45 Index: nsis-2.40.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-util/nsis/nsis-2.40.ebuild,v 1.1 2008/10/19 12:15:43 mrness Exp $
50
51 mingw32_variants=$(eval echo {,i{6,5,4,3}86-}mingw32)
52
53 DESCRIPTION="Nullsoft Scriptable Install System"
54 HOMEPAGE="http://nsis.sourceforge.net/"
55 SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2
56 prebuilt-system? ( mirror://sourceforge/${PN}/${P}.zip )"
57
58 LICENSE="as-is"
59 SLOT="0"
60 KEYWORDS="~amd64 ~ppc ~x86"
61 IUSE="bzip2 config-log doc prebuilt-system zlib"
62
63 # NSIS Menu uses wxwindows but it's all broken, so disable for now
64 # wxwindows? ( x11-libs/wxGTK )
65 RDEPEND="bzip2? ( app-arch/bzip2 )
66 zlib? ( sys-libs/zlib )"
67 DEPEND="${RDEPEND}
68 >=dev-util/scons-0.98"
69
70 S=${WORKDIR}/${P}-src
71
72 mingw_CTARGET() {
73 local i
74 for i in ${mingw32_variants} ; do
75 type -P ${i}-gcc > /dev/null && echo ${i} && return
76 done
77 }
78
79 pkg_setup() {
80 [[ -n $(mingw_CTARGET) ]] && return 0
81
82 local i
83 eerror "Before you could emerge nsis, you need to install mingw32."
84 eerror "Run the following command:"
85 eerror " emerge crossdev"
86 eerror "then run _one_ of the following commands:"
87 for i in ${mingw32_variants} ; do
88 eerror " crossdev ${i}"
89 done
90 die "mingw32 is needed"
91 }
92
93 src_unpack() {
94 unpack ${A}
95 cd "${S}"
96 # a dirty but effective way of killing generated docs
97 use doc || echo > Docs/src/SConscript
98 }
99
100 get_additional_options() {
101 echo \
102 PREFIX=/usr \
103 PREFIX_CONF=/etc \
104 PREFIX_DOC=/usr/share/doc/${PF} \
105 PREFIX_DEST=\"${D}\" \
106 VERSION=${PV} \
107 DEBUG=no \
108 STRIP=no
109 echo \
110 SKIPSTUBS=\"$(use zlib || echo zlib) $(use bzip2 || echo bzip2)\" \
111 SKIPUTILS=\"NSIS Menu\"
112 use config-log && echo NSIS_CONFIG_LOG=yes
113 # remove the following line when nsis bug 1753070 will be fixed
114 use amd64 && echo APPEND_CCFLAGS=-m32 APPEND_LINKFLAGS=-m32
115 }
116
117 do_scons() {
118 local cmd=$1
119 eval set -- $(get_additional_options)
120 echo scons $(get_additional_options) ${cmd}
121 scons "$@" ${cmd}
122 }
123
124 src_compile() {
125 do_scons || die "scons failed"
126 }
127
128 src_install() {
129 do_scons install || die "scons failed"
130 if use prebuilt-system ; then
131 insinto /usr/share/nsis/Plugins
132 doins "${WORKDIR}"/${P}/Plugins/System.dll || die
133 fi
134 use doc || rm -rf "${D}"/usr/share/doc/${PF}/{Docs,Examples}
135
136 fperms -R go-w,a-x,a+X /usr/share/${PN}/ /usr/share/doc/${PF}/ /etc/nsisconf.nsh
137
138 src_strip_win32
139 }
140
141 src_strip_win32() {
142 # need to strip win32 binaries ourselves ... should fold this
143 # back in to prepstrip at some point
144 local STRIP_PROG=$(mingw_CTARGET)-strip
145 local STRIP_FLAGS="--strip-unneeded"
146
147 echo
148 echo "strip: ${STRIP_PROG} ${STRIP_FLAGS}"
149 local FILE
150 for FILE in $(find "${D}" -iregex '.*\.\(dll\|exe\)$') ; do
151 echo " ${FILE#${D}}"
152 ${STRIP_PROG} ${STRIP_FLAGS} "${FILE}"
153 done
154 }