Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/quartus-prime-lite/, sci-electronics/quartus-prime-lite/files/
Date: Thu, 03 Mar 2016 12:58:45
Message-Id: 1457009901.c342db75dbab7154d007baf80f95732fd72512aa.idella4@gentoo
1 commit: c342db75dbab7154d007baf80f95732fd72512aa
2 Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 3 12:57:41 2016 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 3 12:58:21 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c342db75
7
8 sci-electronics/quartus-prime-lite: revbump to 15.1.0.185-r1
9
10 This fixes the issues with launching vsim
11 Masked via no keywords as we bundle insecure old versions of lib freetype,
12 new entry in SRC_URI to acquire lib file libfreetype.so.6
13
14 Gentoo bug: #575684
15
16 Package-Manager: portage-2.2.26
17
18 sci-electronics/quartus-prime-lite/Manifest | 1 +
19 .../quartus-prime-lite-15.1.0.185-qenv-lib32.patch | 11 ++++
20 ...uartus-prime-lite-15.1.0.185-vso-launcher.patch | 19 ++++++
21 sci-electronics/quartus-prime-lite/metadata.xml | 2 +-
22 .../quartus-prime-lite-15.1.0.185-r1.ebuild | 77 ++++++++++++++++++++++
23 5 files changed, 109 insertions(+), 1 deletion(-)
24
25 diff --git a/sci-electronics/quartus-prime-lite/Manifest b/sci-electronics/quartus-prime-lite/Manifest
26 index ea5a473..1461937 100644
27 --- a/sci-electronics/quartus-prime-lite/Manifest
28 +++ b/sci-electronics/quartus-prime-lite/Manifest
29 @@ -1 +1,2 @@
30 DIST Quartus-lite-15.1.0.185-linux.tar 5969776640 SHA256 fd670ee4caee69e9533b7a826af1040bc0e35ef68ca1b43e73d8b69cbf14c7f4 SHA512 7996bc9e0561b650c0318d608b4f59560dd631e3a38c403105f797049c395ce25a0ff5d4346cf6e91338fa297d7e8752ef5a3f83f496d4431ad3591de4335045 WHIRLPOOL 1549939fc9e7ce94b9b2c3032db78ff66ca1f4542831fe15fadb83ba0efab4305430924ed0ac3d47288f7ae85c4b75818c87a5399a6868adcee606e20388d894
31 +DIST libfreetype.so.6 785880 SHA256 42685704d5c8bb5f1f5fdb3eaeab68a9229c43f18e7e66cbffebc60808161425 SHA512 4b0ae581df3ecc0117d8b12405d7e5203d1ec40e965c39dade16c4b5495e95c71c2c5d739ccfec7c4c90dd2f48c004f4ae49497c46927adc81c98ead52978be1 WHIRLPOOL 1a4281ca8385d5be8376d2d1b3e6c35f2eebf15265d144255aecd90beb8eac1be778e58f8dc8db65f2a8bf57cead849dc552854bc4d0a07a0e3cf6183e3b28c1
32
33 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
34 new file mode 100644
35 index 0000000..8e3f117
36 --- /dev/null
37 +++ b/sci-electronics/quartus-prime-lite/files/quartus-prime-lite-15.1.0.185-qenv-lib32.patch
38 @@ -0,0 +1,11 @@
39 +--- /opt/quartus-lite-15.1.0.185/quartus/adm/qenv.sh.org 2016-03-01 18:51:38.192388962 +0800
40 ++++ /opt/quartus-lite-15.1.0.185/quartus/adm/qenv.sh 2016-02-25 09:22:28.580259994 +0800
41 +@@ -136,7 +136,7 @@
42 + ##### Quartus path setup
43 +
44 + export PATH=$QUARTUS_BINDIR:$PATH
45 +-export LD_LIBRARY_PATH=$QUARTUS_BINDIR:$LD_LIBRARY_PATH
46 ++export LD_LIBRARY_PATH=$QUARTUS_BINDIR:$LD_LIBRARY_PATH:/opt/quartus-lite-15.1.0.185/modelsim_ase/lib32
47 +
48 +
49 + # Add <qdir>/adm to path, it has some helper tools
50
51 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
52 new file mode 100644
53 index 0000000..e152aed
54 --- /dev/null
55 +++ b/sci-electronics/quartus-prime-lite/files/quartus-prime-lite-15.1.0.185-vso-launcher.patch
56 @@ -0,0 +1,19 @@
57 +--- /opt/quartus-lite-15.1.0.185/modelsim_ase/vco.org 2016-03-02 19:05:09.566449182 +0800
58 ++++ /opt/quartus-lite-15.1.0.185/modelsim_ase/vco 2016-03-02 19:06:19.020221005 +0800
59 +@@ -48,6 +48,7 @@
60 + done
61 +
62 + dir=`dirname "$arg0"`
63 ++export LD_LIBRARY_PATH=${dir}/lib32
64 +
65 + vco=${uname}${utype}
66 + case $vco in
67 +@@ -203,7 +204,7 @@
68 + 2.[5-9]*) vco="linux" ;;
69 + 2.[1-9][0-9]*) vco="linux" ;;
70 + 3.[0-9]*) vco="linux" ;;
71 +- *) vco="linux_rh60" ;;
72 ++ *) vco="linux" ;;
73 + esac
74 + if [ ! -x "$dir/$vco/vsim" ]; then
75 + if [ -x "$dir/linuxle/vsim" ]; then
76
77 diff --git a/sci-electronics/quartus-prime-lite/metadata.xml b/sci-electronics/quartus-prime-lite/metadata.xml
78 index 08f854c..f64478b 100644
79 --- a/sci-electronics/quartus-prime-lite/metadata.xml
80 +++ b/sci-electronics/quartus-prime-lite/metadata.xml
81 @@ -6,7 +6,7 @@
82 <name>Brendan Horan</name>
83 <description>Proxied maintainer; set to assignee in all bugs</description>
84 </maintainer>
85 -<maintainer type="project">
86 + <maintainer type="project">
87 <email>proxy-maint@g.o</email>
88 <name>Proxy Maintainers</name>
89 </maintainer>
90
91 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
92 new file mode 100644
93 index 0000000..cf4ddee
94 --- /dev/null
95 +++ b/sci-electronics/quartus-prime-lite/quartus-prime-lite-15.1.0.185-r1.ebuild
96 @@ -0,0 +1,77 @@
97 +# Copyright 1999-2016 Gentoo Foundation
98 +# Distributed under the terms of the GNU General Public License v2
99 +# $Id$
100 +
101 +EAPI=6
102 +
103 +inherit eutils
104 +
105 +DESCRIPTION="Full-featured EDA product for altera devices"
106 +HOMEPAGE="https://www.altera.com/products/design-software/fpga-design/quartus-prime/overview.html"
107 +SRC_URI="Quartus-lite-${PV}-linux.tar
108 + https://github.com/brendanhoran/gentoo-custom/raw/master/files/libfreetype.so.6"
109 +# variable to store the download URLS
110 +DOWNLOADPAGE="http://dl.altera.com/?edition=lite"
111 +DOWNLOADFT="https://raw.githubusercontent.com/brendanhoran/gentoo-custom/master/files/libfreetype.so.6"
112 +
113 +LICENSE="Quartus-prime-megacore"
114 +SLOT="0"
115 +
116 +# No keywords as per bug 575684
117 +KEYWORDS=""
118 +
119 +RDEPEND="media-libs/libpng:1.2[abi_x86_32]
120 + x11-libs/libXft[abi_x86_32]
121 + app-arch/bzip2[abi_x86_32]
122 + sys-libs/zlib[abi_x86_32]
123 + sys-libs/glibc[multilib]"
124 +
125 +RESTRICT="fetch bindist"
126 +
127 +S=${WORKDIR}
128 +
129 +pkg_nofetch() {
130 + elog "Due to licensing restrictions, and old libary versions."
131 + elog "You need to download the distfiles manually."
132 + elog "-------------------------------------------------------"
133 + elog "For Quartus :"
134 + elog "Please navigate to ${DOWNLOADPAGE}"
135 + elog "Sign in with your Altera account (you need to register)"
136 + elog "Download Quartus-lite-${PV}-linux.tar and place it into ${DISTDIR}"
137 + elog "-------------------------------------------------------"
138 + elog "For Freetype libary :"
139 + elog "Please download the following file :"
140 + elog "${DOWNLOADFT}"
141 + elog "Please place this into ${DISTDIR}"
142 + elog "-------------------------------------------------------"
143 + elog "And restart the installation."
144 +}
145 +
146 +pkg_pretend() {
147 + einfo "The checksum and unpack will take quite some time to run"
148 +}
149 +
150 +src_install() {
151 + einfo "The Quartus install runs in unattended mode"
152 + einfo "you wont see much and it will take a long time"
153 +
154 + ./setup.sh --mode unattended --unattendedmodeui none \
155 + --installdir "${D}/opt/quartus-lite-${PV}" || die
156 + make_desktop_entry "/opt/quartus-lite-${PV}/quartus/bin/quartus" \
157 + "Quartus lite ${PV}" "/opt/quartus-lite-${PV}/quartus/adm/quartusii.png"
158 + pushd "${D}"
159 + # Patch qenv to find extra 32bit libs
160 + epatch "${FILESDIR}/${P}-qenv-lib32.patch"
161 + # fix vso launcher for 32bit libs and linux kernel versions
162 + epatch "${FILESDIR}/${P}-vso-launcher.patch"
163 + dodir "opt/quartus-lite-${PV}/modelsim_ase/lib32"
164 + insinto "opt/quartus-lite-${PV}/modelsim_ase/lib32"
165 + # Copy over the old freetype lib
166 + doins "${PORTAGE_BUILDDIR}/distdir/libfreetype.so.6"
167 +}
168 +
169 +pkg_postinst() {
170 + elog "To launch Quartus, run /opt/quartus-lite-${PV}/quartus/bin/quartus"
171 + ewarn "This ebuild bundles a vulnerable and old freetype library"
172 + ewarn "Sadly this is needed for vsim. You have been warned"
173 +}