blob: e587c1365e6e9fb71791d1a31ae40ac881f1c5d2 (
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
|
# Copyright 1999-2023 Gentoo Authors
# Copyright 2022-2023 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
TRINITY_MODULE_NAME="tdewebdev"
TRINITY_MODULE_TYPE="core"
TRINITY_HANDBOOK="optional"
TSM_EXTRACT_ALSO="lib"
inherit flag-o-matic trinity-meta-2
DESCRIPTION="Web development environment for TDE [Trinity]"
HOMEPAGE="https://trinitydesktop.org/"
SRC_URI+="
http://download.sourceforge.net/quanta/html.tar.bz2
http://download.sourceforge.net/quanta/css.tar.bz2
http://download.sourceforge.net/quanta/javascript.tar.bz2
http://download.sourceforge.net/quanta/php_manual_en_20030401.tar.bz2"
if [[ ${PV} != *9999* ]] ; then
KEYWORDS="~amd64 ~arm64 ~x86"
fi
DEPEND="
app-text/htmltidy
dev-libs/libxml2
dev-libs/libxslt
~trinity-base/klinkstatus-${PV}
~trinity-base/kommander-${PV}
~trinity-base/tdefilereplace-${PV}
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-xml2.patch"
)
src_unpack() {
trinity-meta-2_src_unpack
unpack php_manual_en_20030401.tar.bz2
cd "${S}"
unpack css.tar.bz2
unpack javascript.tar.bz2
unpack html.tar.bz2
}
src_configure() {
append-cxxflags "-std=c++11"
trinity-meta-2_src_configure
}
src_prepare() {
cp "${FILESDIR}/externalpreview.sh" "${S}/quanta/scripts/externalpreview.sh" || die
trinity-meta-2_src_prepare
}
src_install() {
dodir ${TDEDIR}/share/apps/quanta/doc
for i in css html javascript ; do
pushd $i >/dev/null || die
./install.sh <<EOF
${D}/${TDEDIR}/share/apps/quanta/doc
EOF
popd >/dev/null || die
rm -rf $i || die
done
cp -rf "${WORKDIR}/php" "${WORKDIR}/php.docrc" "${D}/${TDEDIR}/share/apps/quanta/doc" || die
trinity-meta-2_src_install
}
|