summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Delaney <idella4@gentoo.org>2016-03-03 20:57:41 +0800
committerIan Delaney <idella4@gentoo.org>2016-03-03 20:58:21 +0800
commitc342db75dbab7154d007baf80f95732fd72512aa (patch)
treea876ef7a8eca3e18678c304670e1f89767328f44
parentdev-lang/yap: avoid compile-time MPI-YAP interface redefinitions (diff)
downloadgentoo-c342db75dbab7154d007baf80f95732fd72512aa.tar.gz
gentoo-c342db75dbab7154d007baf80f95732fd72512aa.tar.bz2
gentoo-c342db75dbab7154d007baf80f95732fd72512aa.zip
sci-electronics/quartus-prime-lite: revbump to 15.1.0.185-r1
This fixes the issues with launching vsim Masked via no keywords as we bundle insecure old versions of lib freetype, new entry in SRC_URI to acquire lib file libfreetype.so.6 Gentoo bug: #575684 Package-Manager: portage-2.2.26
-rw-r--r--sci-electronics/quartus-prime-lite/Manifest1
-rw-r--r--sci-electronics/quartus-prime-lite/files/quartus-prime-lite-15.1.0.185-qenv-lib32.patch11
-rw-r--r--sci-electronics/quartus-prime-lite/files/quartus-prime-lite-15.1.0.185-vso-launcher.patch19
-rw-r--r--sci-electronics/quartus-prime-lite/metadata.xml2
-rw-r--r--sci-electronics/quartus-prime-lite/quartus-prime-lite-15.1.0.185-r1.ebuild77
5 files changed, 109 insertions, 1 deletions
diff --git a/sci-electronics/quartus-prime-lite/Manifest b/sci-electronics/quartus-prime-lite/Manifest
index ea5a4733086e..1461937bae8b 100644
--- a/sci-electronics/quartus-prime-lite/Manifest
+++ b/sci-electronics/quartus-prime-lite/Manifest
@@ -1 +1,2 @@
DIST Quartus-lite-15.1.0.185-linux.tar 5969776640 SHA256 fd670ee4caee69e9533b7a826af1040bc0e35ef68ca1b43e73d8b69cbf14c7f4 SHA512 7996bc9e0561b650c0318d608b4f59560dd631e3a38c403105f797049c395ce25a0ff5d4346cf6e91338fa297d7e8752ef5a3f83f496d4431ad3591de4335045 WHIRLPOOL 1549939fc9e7ce94b9b2c3032db78ff66ca1f4542831fe15fadb83ba0efab4305430924ed0ac3d47288f7ae85c4b75818c87a5399a6868adcee606e20388d894
+DIST libfreetype.so.6 785880 SHA256 42685704d5c8bb5f1f5fdb3eaeab68a9229c43f18e7e66cbffebc60808161425 SHA512 4b0ae581df3ecc0117d8b12405d7e5203d1ec40e965c39dade16c4b5495e95c71c2c5d739ccfec7c4c90dd2f48c004f4ae49497c46927adc81c98ead52978be1 WHIRLPOOL 1a4281ca8385d5be8376d2d1b3e6c35f2eebf15265d144255aecd90beb8eac1be778e58f8dc8db65f2a8bf57cead849dc552854bc4d0a07a0e3cf6183e3b28c1
diff --git a/sci-electronics/quartus-prime-lite/files/quartus-prime-lite-15.1.0.185-qenv-lib32.patch b/sci-electronics/quartus-prime-lite/files/quartus-prime-lite-15.1.0.185-qenv-lib32.patch
new file mode 100644
index 000000000000..8e3f117e7959
--- /dev/null
+++ b/sci-electronics/quartus-prime-lite/files/quartus-prime-lite-15.1.0.185-qenv-lib32.patch
@@ -0,0 +1,11 @@
+--- /opt/quartus-lite-15.1.0.185/quartus/adm/qenv.sh.org 2016-03-01 18:51:38.192388962 +0800
++++ /opt/quartus-lite-15.1.0.185/quartus/adm/qenv.sh 2016-02-25 09:22:28.580259994 +0800
+@@ -136,7 +136,7 @@
+ ##### Quartus path setup
+
+ export PATH=$QUARTUS_BINDIR:$PATH
+-export LD_LIBRARY_PATH=$QUARTUS_BINDIR:$LD_LIBRARY_PATH
++export LD_LIBRARY_PATH=$QUARTUS_BINDIR:$LD_LIBRARY_PATH:/opt/quartus-lite-15.1.0.185/modelsim_ase/lib32
+
+
+ # Add <qdir>/adm to path, it has some helper tools
diff --git a/sci-electronics/quartus-prime-lite/files/quartus-prime-lite-15.1.0.185-vso-launcher.patch b/sci-electronics/quartus-prime-lite/files/quartus-prime-lite-15.1.0.185-vso-launcher.patch
new file mode 100644
index 000000000000..e152aed093cc
--- /dev/null
+++ b/sci-electronics/quartus-prime-lite/files/quartus-prime-lite-15.1.0.185-vso-launcher.patch
@@ -0,0 +1,19 @@
+--- /opt/quartus-lite-15.1.0.185/modelsim_ase/vco.org 2016-03-02 19:05:09.566449182 +0800
++++ /opt/quartus-lite-15.1.0.185/modelsim_ase/vco 2016-03-02 19:06:19.020221005 +0800
+@@ -48,6 +48,7 @@
+ done
+
+ dir=`dirname "$arg0"`
++export LD_LIBRARY_PATH=${dir}/lib32
+
+ vco=${uname}${utype}
+ case $vco in
+@@ -203,7 +204,7 @@
+ 2.[5-9]*) vco="linux" ;;
+ 2.[1-9][0-9]*) vco="linux" ;;
+ 3.[0-9]*) vco="linux" ;;
+- *) vco="linux_rh60" ;;
++ *) vco="linux" ;;
+ esac
+ if [ ! -x "$dir/$vco/vsim" ]; then
+ if [ -x "$dir/linuxle/vsim" ]; then
diff --git a/sci-electronics/quartus-prime-lite/metadata.xml b/sci-electronics/quartus-prime-lite/metadata.xml
index 08f854c1c4e5..f64478bb00e5 100644
--- a/sci-electronics/quartus-prime-lite/metadata.xml
+++ b/sci-electronics/quartus-prime-lite/metadata.xml
@@ -6,7 +6,7 @@
<name>Brendan Horan</name>
<description>Proxied maintainer; set to assignee in all bugs</description>
</maintainer>
-<maintainer type="project">
+ <maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
diff --git a/sci-electronics/quartus-prime-lite/quartus-prime-lite-15.1.0.185-r1.ebuild b/sci-electronics/quartus-prime-lite/quartus-prime-lite-15.1.0.185-r1.ebuild
new file mode 100644
index 000000000000..cf4ddee63fd3
--- /dev/null
+++ b/sci-electronics/quartus-prime-lite/quartus-prime-lite-15.1.0.185-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Full-featured EDA product for altera devices"
+HOMEPAGE="https://www.altera.com/products/design-software/fpga-design/quartus-prime/overview.html"
+SRC_URI="Quartus-lite-${PV}-linux.tar
+ https://github.com/brendanhoran/gentoo-custom/raw/master/files/libfreetype.so.6"
+# variable to store the download URLS
+DOWNLOADPAGE="http://dl.altera.com/?edition=lite"
+DOWNLOADFT="https://raw.githubusercontent.com/brendanhoran/gentoo-custom/master/files/libfreetype.so.6"
+
+LICENSE="Quartus-prime-megacore"
+SLOT="0"
+
+# No keywords as per bug 575684
+KEYWORDS=""
+
+RDEPEND="media-libs/libpng:1.2[abi_x86_32]
+ x11-libs/libXft[abi_x86_32]
+ app-arch/bzip2[abi_x86_32]
+ sys-libs/zlib[abi_x86_32]
+ sys-libs/glibc[multilib]"
+
+RESTRICT="fetch bindist"
+
+S=${WORKDIR}
+
+pkg_nofetch() {
+ elog "Due to licensing restrictions, and old libary versions."
+ elog "You need to download the distfiles manually."
+ elog "-------------------------------------------------------"
+ elog "For Quartus :"
+ elog "Please navigate to ${DOWNLOADPAGE}"
+ elog "Sign in with your Altera account (you need to register)"
+ elog "Download Quartus-lite-${PV}-linux.tar and place it into ${DISTDIR}"
+ elog "-------------------------------------------------------"
+ elog "For Freetype libary :"
+ elog "Please download the following file :"
+ elog "${DOWNLOADFT}"
+ elog "Please place this into ${DISTDIR}"
+ elog "-------------------------------------------------------"
+ elog "And restart the installation."
+}
+
+pkg_pretend() {
+ einfo "The checksum and unpack will take quite some time to run"
+}
+
+src_install() {
+ einfo "The Quartus install runs in unattended mode"
+ einfo "you wont see much and it will take a long time"
+
+ ./setup.sh --mode unattended --unattendedmodeui none \
+ --installdir "${D}/opt/quartus-lite-${PV}" || die
+ make_desktop_entry "/opt/quartus-lite-${PV}/quartus/bin/quartus" \
+ "Quartus lite ${PV}" "/opt/quartus-lite-${PV}/quartus/adm/quartusii.png"
+ pushd "${D}"
+ # Patch qenv to find extra 32bit libs
+ epatch "${FILESDIR}/${P}-qenv-lib32.patch"
+ # fix vso launcher for 32bit libs and linux kernel versions
+ epatch "${FILESDIR}/${P}-vso-launcher.patch"
+ dodir "opt/quartus-lite-${PV}/modelsim_ase/lib32"
+ insinto "opt/quartus-lite-${PV}/modelsim_ase/lib32"
+ # Copy over the old freetype lib
+ doins "${PORTAGE_BUILDDIR}/distdir/libfreetype.so.6"
+}
+
+pkg_postinst() {
+ elog "To launch Quartus, run /opt/quartus-lite-${PV}/quartus/bin/quartus"
+ ewarn "This ebuild bundles a vulnerable and old freetype library"
+ ewarn "Sadly this is needed for vsim. You have been warned"
+}