diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-util/nsis | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-util/nsis')
-rw-r--r-- | dev-util/nsis/Manifest | 3 | ||||
-rw-r--r-- | dev-util/nsis/files/nsis-2.46-gcc47.patch | 15 | ||||
-rw-r--r-- | dev-util/nsis/metadata.xml | 23 | ||||
-rw-r--r-- | dev-util/nsis/nsis-2.46-r1.ebuild | 115 |
4 files changed, 156 insertions, 0 deletions
diff --git a/dev-util/nsis/Manifest b/dev-util/nsis/Manifest new file mode 100644 index 000000000000..57990bd10ce4 --- /dev/null +++ b/dev-util/nsis/Manifest @@ -0,0 +1,3 @@ +DIST makensis_64bit.patch 18743 SHA256 df6377f0e21ef585064c3dd999550e1aef9df8c2224833167716a7166d93d22a SHA512 e04e0f6255708490e4fc2929bbfca442b7e59b5f05ea9b10145e556e59317e81452e77f9214df011bc7d6b45c79ce13396e2aeb85ce2d7d48e95721e53340c2b WHIRLPOOL c0b1ab7c12e43f8ff8d4fd543ac0600d76b1d2f870c89b25fd22aaba9215f45893acadbed075a50e9428ae1d29dde971f9772846f2223163e7836c1d952036f3 +DIST nsis-2.46-src.tar.bz2 1499014 SHA256 f5f9e5e22505e44b25aea14fe17871c1ed324c1f3cc7a753ef591f76c9e8a1ae SHA512 8716cf6dc086d8b9eb3c707b3a65790bf2e2b41116243d86243514ec6b2db7c508dedef027863bbd6650b21ca5f94ef7dd6706fe14ddc151c4548ecb15858ee6 WHIRLPOOL d716a7b78b20517dff420f57ff820a5aac4654d77a3a0760ee7512aff12d9abbb8be20da888968b151571363ddc1b8c3b02cc7e51784c95ab5169b8a1ab424e3 +DIST nsis_w64-mingw.patch 10378 SHA256 e3fe5f5675ac3562ae67283914f5ecf83f313e9127a406477f04c2aeafd945d5 SHA512 b8f0f7151a53335a5b3bf49ef2a16d805642c43a238afd424541be7d64a1a543ded28479ff503da84591b358f5f71728a815b704a083b94997cfbd5246b6f2b6 WHIRLPOOL a14e5168550974947d4da50747b7dd9893117c0b6dc981bdcd8c0fa053ead8d5a61c8317e18bf9f81a10c2b2efa398c3d40a3da011cc3c3dacef241f5aaa622c diff --git a/dev-util/nsis/files/nsis-2.46-gcc47.patch b/dev-util/nsis/files/nsis-2.46-gcc47.patch new file mode 100644 index 000000000000..e64a8b6ba43f --- /dev/null +++ b/dev-util/nsis/files/nsis-2.46-gcc47.patch @@ -0,0 +1,15 @@ +Fix building with gcc-4.7 + +https://bugs.gentoo.org/show_bug.cgi?id=421871 + +Patch written by Kacper Kowalik <xarthisius@gentoo.org> +--- a/Source/util.h ++++ b/Source/util.h +@@ -18,6 +18,7 @@ + #define _UTIL_H_ + + #include <string> // for std::string ++#include <unistd.h> + + #include "boost/scoped_ptr.hpp" // for boost::scoped_ptr + #include "ResourceEditor.h" diff --git a/dev-util/nsis/metadata.xml b/dev-util/nsis/metadata.xml new file mode 100644 index 000000000000..b0b6adab8407 --- /dev/null +++ b/dev-util/nsis/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <longdescription> +NSIS (Nullsoft Scriptable Install System) is a professional open source +system to create Windows installers. It is designed to be as small and +flexible as possible and is therefore very suitable for Internet distribution. + +NSIS is script-based and allows you to create the logic to handle even the +most complex installation tasks. Many plug-ins and scripts are already +available: you can create web installers, communicate with Windows and other +software components, install or update shared components and more. +</longdescription> + <use> + <flag name="config-log">Enable the logging facility (useful in debugging installers)</flag> + </use> + <upstream> + <remote-id type="sourceforge">nsis</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/nsis/nsis-2.46-r1.ebuild b/dev-util/nsis/nsis-2.46-r1.ebuild new file mode 100644 index 000000000000..0276d6a664e7 --- /dev/null +++ b/dev-util/nsis/nsis-2.46-r1.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +mingw32_variants=$(echo {,i{6,5,4,3}86-{,pc-,w32-,w64-}}mingw32) + +inherit eutils + +DESCRIPTION="Nullsoft Scriptable Install System" +HOMEPAGE="http://nsis.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.bz2 + http://f0rt.users.sourceforge.net/makensis_64bit.patch + http://f0rt.users.sourceforge.net/nsis_w64-mingw.patch" + +LICENSE="ZLIB BZIP2 CPL-1.0" +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}-g++ > /dev/null && echo ${i} && return + done +} + +pkg_pretend() { + [[ -n $(mingw_CTARGET) ]] && return 0 + + eerror "Before you could emerge nsis, you need to install mingw with C++ support" + eerror "Run the following commands:" + eerror " emerge crossdev" + eerror " USE='cxx' crossdev --stable --libc '[latest]' -t i686-w64-mingw32" + die "mingw is needed" +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc47.patch + epatch "${DISTDIR}/makensis_64bit.patch" + epatch "${DISTDIR}/nsis_w64-mingw.patch" + + sed -i 's/SetDefault/Append/' "${S}/Source/exehead/SConscript" || die #505996 + + # 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 + + 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 + echo CROSS_W32=$(mingw_CTARGET)- +} + +do_scons() { + local cmd=$1 + eval set -- $(get_additional_options) + echo scons $(get_additional_options) ${cmd} + scons "$@" ${cmd} +} + +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 +} |