summaryrefslogtreecommitdiff
blob: 64b85c0a6e7b2cbe6502ff86df14e22ad5f13168 (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="Squeak image file"
HOMEPAGE="http://www.squeak.org/"

SRC_URI="
	http://ftp.squeak.org/5.0/Squeak5.0-15110.zip
	http://ftp.squeak.org/5.0/SqueakV50.sources.zip"

LICENSE="Apache-2.0 MIT BitstreamVera"
SLOT="4.6"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="app-arch/unzip
	dev-lang/squeakvm"
RDEPEND=""

S="${WORKDIR}"

src_compile() {
	einfo "Compressing image/changes files."
	gzip "Squeak5.0-15133.image"
	gzip "Squeak5.0-15133.changes"
	gzip "SqueakV50.sources"
	einfo "done."
}

src_install() {
	einfo 'Installing Image/Sources/Changes files.'
	#dodoc ReadMe.txt
	insinto "/usr/lib/squeak"
	# install full image and changes file.
	doins "Squeak5.0-15133.image.gz"
	doins "Squeak5.0-15133.changes.gz"
	# install sources
	doins "SqueakV50.sources.gz"
}

pkg_postinst() {
	elog "Squeak ${PV} image, changes and sources files installed in /usr/lib/squeak"
}