You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
49 lines
1.4 KiB
5 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
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"
|
||
|
# variable to store the download URL
|
||
|
DOWNLOADPAGE="http://dl.altera.com/?edition=lite"
|
||
|
|
||
|
LICENSE="Quartus-prime-megacore"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
5 years ago
|
RDEPEND="media-libs/libpng-compat:1.2"
|
||
9 years ago
|
|
||
|
RESTRICT="fetch bindist"
|
||
|
|
||
|
S=${WORKDIR}
|
||
|
|
||
|
pkg_nofetch() {
|
||
|
elog "Due to licensing restrictions, you need to download the distfile manually."
|
||
|
elog "Please navigate to ${DOWNLOADPAGE}"
|
||
|
elog "Sign in with your Altera account (you need to register)"
|
||
5 years ago
|
elog "Download ${SRC_URI} and place it into your DISTDIR directory"
|
||
9 years ago
|
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}"
|
||
|
make_desktop_entry "/opt/quartus-lite-${PV}/quartus/bin/quartus" \
|
||
|
"Quartus lite ${PV}" "/opt/quartus-lite-${PV}/quartus/adm/quartusii.png"
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
elog "To launch Quartus, run /opt/quartus-lite-${PV}/quartus/bin/quartus"
|
||
|
}
|