aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-11-06 21:53:53 +1100
committerMichael Palimaka <kensington@gentoo.org>2016-11-06 22:12:31 +1100
commit66b1eb9bdc08eb31a611b46cf47975e4c335ff58 (patch)
treed556b506104d0bdb231e28021246f6527c502e84
parentlicenses: add Qt-Free-Edition (diff)
downloadkde-66b1eb9bdc08eb31a611b46cf47975e4c335ff58.tar.gz
kde-66b1eb9bdc08eb31a611b46cf47975e4c335ff58.tar.bz2
kde-66b1eb9bdc08eb31a611b46cf47975e4c335ff58.zip
dev-qt/qt1: new package
Package-Manager: portage-2.3.2
-rw-r--r--dev-qt/qt1/metadata.xml8
-rw-r--r--dev-qt/qt1/qt1-9999.ebuild45
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-qt/qt1/metadata.xml b/dev-qt/qt1/metadata.xml
new file mode 100644
index 0000000000..2fdbf33d96
--- /dev/null
+++ b/dev-qt/qt1/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-qt/qt1/qt1-9999.ebuild b/dev-qt/qt1/qt1-9999.ebuild
new file mode 100644
index 0000000000..fc258d5892
--- /dev/null
+++ b/dev-qt/qt1/qt1-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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/*
+}