Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 281067 Details for
Bug 374795
dev-util/nsis-2.46 fail to build
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
modified nsis-2.46.ebuild
nsis-2.46.ebuild (text/plain), 2.77 KB, created by
t0mus
on 2011-07-26 19:40:15 UTC
(
hide
)
Description:
modified nsis-2.46.ebuild
Filename:
MIME Type:
Creator:
t0mus
Created:
2011-07-26 19:40:15 UTC
Size:
2.77 KB
patch
obsolete
># Copyright 1999-2010 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/dev-util/nsis/nsis-2.46.ebuild,v 1.2 2010/05/23 19:11:56 vapier Exp $ > >EAPI="2" >mingw32_variants=$(echo {,i{6,5,4,3}86-{,pc-}}mingw32) > >DESCRIPTION="Nullsoft Scriptable Install System" >HOMEPAGE="http://nsis.sourceforge.net/" >SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2" > >LICENSE="as-is" >SLOT="0" >KEYWORDS="amd64 ~ppc x86" >IUSE="bzip2 config-log doc zlib" >RESTRICT="strip" > ># NSIS Menu uses wxwindows but it's all broken, so disable for now ># wxwindows? ( x11-libs/wxGTK ) >RDEPEND="bzip2? ( app-arch/bzip2 ) > zlib? ( sys-libs/zlib )" >DEPEND="${RDEPEND} > >=dev-util/scons-0.98" > >S="${WORKDIR}"/${P}-src > >mingw_CTARGET() { > local i > for i in ${mingw32_variants} ; do > type -P ${i}-gcc > /dev/null && echo ${i} && return > done >} > >pkg_setup() { > [[ -n $(mingw_CTARGET) ]] && return 0 > > local i > eerror "Before you could emerge nsis, you need to install mingw32." > eerror "Run the following command:" > eerror " emerge crossdev" > eerror "then run _one_ of the following commands:" > for i in ${mingw32_variants} ; do > eerror " crossdev ${i}" > done > die "mingw32 is needed" >} > >src_prepare() { > # a dirty but effective way of killing generated docs > use doc || echo > Docs/src/SConscript >} > >get_additional_options() { > echo \ > PREFIX=/usr \ > PREFIX_CONF=/etc \ > PREFIX_DOC=/usr/share/doc/${PF} \ > PREFIX_DEST=\"${D}\" \ > VERSION=${PV} \ > DEBUG=no \ > STRIP=no > echo \ > SKIPSTUBS=\"$(use zlib || echo zlib) $(use bzip2 || echo bzip2)\" \ > SKIPUTILS=\"NSIS Menu\" > use config-log && echo NSIS_CONFIG_LOG=yes > # remove the following line when nsis bug 1753070 will be fixed > use amd64 && echo APPEND_CCFLAGS=-m32 APPEND_LINKFLAGS=-m32 > > local tcpfx=$($(mingw_CTARGET)-gcc -print-file-name=libshell32.a) > tcpfx=${tcpfx%/lib/libshell32.a} > echo \ > PREFIX_PLUGINAPI_INC=${tcpfx}/include \ > PREFIX_PLUGINAPI_LIB=${tcpfx}/lib >} > >do_scons() { > local cmd=$1 > eval set -- $(get_additional_options) > echo scons $(get_additional_options) ${cmd} > cd ${S} > scons "$@" ${cmd} > cd - >} > >src_compile() { > do_scons || die "scons failed" >} > >src_install() { > do_scons install || die "scons failed" > use doc || rm -rf "${D}"/usr/share/doc/${PF}/{Docs,Examples} > > fperms -R go-w,a-x,a+X /usr/share/${PN}/ /usr/share/doc/${PF}/ /etc/nsisconf.nsh > > env -uRESTRICT prepstrip "${D}/usr/bin" > src_strip_win32 >} > >src_strip_win32() { > # need to strip win32 binaries ourselves ... should fold this > # back in to prepstrip at some point > local STRIP_PROG=$(mingw_CTARGET)-strip > local STRIP_FLAGS="--strip-unneeded" > > echo > echo "strip: ${STRIP_PROG} ${STRIP_FLAGS}" > local FILE > for FILE in $(find "${D}" -iregex '.*\.\(dll\|exe\|a\)$') ; do > echo " /${FILE#${D}}" > ${STRIP_PROG} ${STRIP_FLAGS} "${FILE}" > done >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 374795
:
279723
| 281067 |
281071
|
281077