summaryrefslogtreecommitdiff
path: root/dev-qt/qt1/qt1-9999.ebuild
blob: 02a7f974f1371f8784c9c6f3589f89338aaa2cd9 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit git-r3 toolchain-funcs

DESCRIPTION="Historical copy of Qt 1, adapted to compile on modern systems (circa. 2016)"
HOMEPAGE="https://quickgit.kde.org/?p=qt1.git"
EGIT_REPO_URI="git://anongit.kde.org/${PN}.git"

LICENSE="Qt-Free-Edition"
SLOT="0"
KEYWORDS=""
IUSE=""

DEPEND="
	x11-libs/libX11
	x11-libs/libXext
"
RDEPEND="${DEPEND}"

src_prepare() {
	default
	sed -i configs/linux-g++-shared \
		-e '/SYSCONF_LFLAGS_QT/s/lib/src/' \
		-e "/SYSCONF_CXX/s/g++/$(tc-getCC)/" \
		|| die
}

src_compile() {
	export QTDIR="${S}"
	emake linux-g++-shared
	emake
}

src_install() {
	into /opt/qt1
	dobin bin/moc
	dolib src/libqt.so*

	insinto /opt/qt1/include
	doins include/*
}