diff options
author | Michael Haubenwallner <haubi@gentoo.org> | 2020-03-10 16:43:42 +0100 |
---|---|---|
committer | Michael Haubenwallner <haubi@gentoo.org> | 2020-03-11 09:10:51 +0100 |
commit | 37296c161c91efa48e17f520ce9af06c615ea93c (patch) | |
tree | ab58e01d441809f2782bc6d46153808334bce12f /sys-devel | |
parent | sys-devel/parity: upstream dropped VC 7.x support (diff) | |
download | gentoo-37296c161c91efa48e17f520ce9af06c615ea93c.tar.gz gentoo-37296c161c91efa48e17f520ce9af06c615ea93c.tar.bz2 gentoo-37296c161c91efa48e17f520ce9af06c615ea93c.zip |
sys-devel/parity: revbump 2.0.0
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Michael Haubenwallner <haubi@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/parity/Manifest | 1 | ||||
-rw-r--r-- | sys-devel/parity/parity-2.0.0.ebuild | 77 | ||||
-rw-r--r-- | sys-devel/parity/parity-9999.ebuild | 2 |
3 files changed, 79 insertions, 1 deletions
diff --git a/sys-devel/parity/Manifest b/sys-devel/parity/Manifest new file mode 100644 index 000000000000..c740aca6a7bd --- /dev/null +++ b/sys-devel/parity/Manifest @@ -0,0 +1 @@ +DIST parity-2.0.0.tar.bz2 371278 BLAKE2B 49a183c7249d83757b9596dad71ad4feb4fbcc63966cfc90da50cce5fb03aa4118360165640ad3ebe73e0a37da7efdd3583685fa084ba7bffa8f6c2c2168ef7c SHA512 ff0b166d400bc7e14ec3c46c2f7fa32a4dfd69f044d20ea97d7fc6361493f5def682dfc7b51e09619357d1e88c5b44e1105b785be3ed1f58c38eb3d35a9bc748 diff --git a/sys-devel/parity/parity-2.0.0.ebuild b/sys-devel/parity/parity-2.0.0.ebuild new file mode 100644 index 000000000000..24c5d7682b3b --- /dev/null +++ b/sys-devel/parity/parity-2.0.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +if [[ ${PV} == 9999 ]]; then + inherit autotools git-r3 + EGIT_REPO_URI="git@github.com:haubi/parity.git https://github.com/haubi/parity.git" + DEPEND="dev-util/confix" +else + SRC_URI="https://github.com/mduft/${PN}/releases/download/${PV}/${P}.tar.bz2" + KEYWORDS="~x64-cygwin" +fi +DESCRIPTION="A POSIX to native Win32 Cross-Compiler Tool (requires Visual Studio)" +HOMEPAGE="https://github.com/mduft/parity" + +parity-vcarchs() { echo x64=x86_64 x86=i686 ; } +parity-vcvers-legacy() { echo 8_0 9_0 ; } +parity-vcvers-current() { echo 10_0 11_0 12_0 14_0 15 16 ; } +parity-vcvers() { + parity-vcvers-legacy + parity-vcvers-current +} + +LICENSE="LGPL-3" +SLOT="0" +IUSE="$( + for a in $(parity-vcarchs); do echo "+vc${a%=*}"; done + for v in $(parity-vcvers-legacy); do echo "vc${v}"; done + for v in $(parity-vcvers-current); do echo "+vc${v}"; done +)" + +if [[ ${PV} == 9999 ]]; then + src_prepare() { + default + confix --output || die + eautoreconf + } +fi + +parity-enabled-vcarchs() { + local enabled= a + for a in $(parity-vcarchs) ; do + if use vc${a%=*} ; then + enabled+=",${a#*=}" + fi + done + echo ${enabled#,} +} + +parity-enabled-vcvers() { + local enabled= v + for v in $(parity-vcvers) ; do + if use vc${v} ; then + enabled+=",${v/_/.}" + fi + done + echo ${enabled#,} +} + +src_configure() { + local myconf=( + --enable-msvc-archs="$(parity-enabled-vcarchs)" + --enable-msvc-versions="$(parity-enabled-vcvers)" + --disable-default-msvc-version + ) + econf "${myconf[@]}" +} + +pkg_postinst() { + if [[ -n ${ROOT%/} ]] ; then + einfo "To enable all available MSVC versions, on the target machine please run:" + einfo " '${EPREFIX}/usr/bin/parity-setup' --enable-all" + else + "${EPREFIX}"/usr/bin/parity-setup --enable-all + fi +} diff --git a/sys-devel/parity/parity-9999.ebuild b/sys-devel/parity/parity-9999.ebuild index 696e51ba1242..24c5d7682b3b 100644 --- a/sys-devel/parity/parity-9999.ebuild +++ b/sys-devel/parity/parity-9999.ebuild @@ -8,7 +8,7 @@ if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="git@github.com:haubi/parity.git https://github.com/haubi/parity.git" DEPEND="dev-util/confix" else - SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + SRC_URI="https://github.com/mduft/${PN}/releases/download/${PV}/${P}.tar.bz2" KEYWORDS="~x64-cygwin" fi DESCRIPTION="A POSIX to native Win32 Cross-Compiler Tool (requires Visual Studio)" |