blob: 41d04df2765418266ef3dd90e6acef5e50d203e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit desktop epatch
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-compat: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 your DISTDIR directory"
elog "-------------------------------------------------------"
elog "For Freetype libary :"
elog "Please download the following file :"
elog "${DOWNLOADFT}"
elog "Please place this into your DISTDIR directory"
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"
}
|