Change opengl-refpages ebuild to just install arch linux's package since theirs is cleaner
This commit is contained in:
parent
7da88a94cc
commit
b1780e78b8
1
app-doc/opengl-refpages/Manifest
Normal file
1
app-doc/opengl-refpages/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST opengl-refpages-20190725.tar.zstd 909381 BLAKE2B d4acdf1b45272e98e7da850b4b866c357b83ada95cb2779b88a08aa7852f5643f38b8b6886248ba5fe6800f0927351d5e04c126b9f6e4c010d768845e243fc00 SHA512 09031dc42ab60029da1d448e7713c9210eb215a084489be7f3548fc29f72d1a9817b5c5404bcd4e10158a4300b888758aea7d0ffa0c33b47d8da46c2f6ce5912
|
||||
36
app-doc/opengl-refpages/opengl-refpages-20190725.ebuild
Normal file
36
app-doc/opengl-refpages/opengl-refpages-20190725.ebuild
Normal file
@ -0,0 +1,36 @@
|
||||
# Copyright 2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="OpenGL and OpenGL ES reference page sources"
|
||||
HOMEPAGE="https://github.com/KhronosGroup/OpenGL-Refpages"
|
||||
SRC_URI="https://www.archlinux.org/packages/extra/any/opengl-man-pages/download/ -> ${P}.tar.zstd"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
app-arch/zstd
|
||||
dev-libs/libxslt
|
||||
app-text/docbook-xsl-stylesheets
|
||||
"
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
tar xf "${DISTDIR}/${P}.tar.zstd"
|
||||
}
|
||||
src_configure() {
|
||||
cd "usr/share/man/man3/" || die
|
||||
for file in *.3G.gz;do
|
||||
gunzip "$file" || die
|
||||
done
|
||||
}
|
||||
src_install() {
|
||||
cd "usr/share/man/man3/" || die
|
||||
doman *.3G
|
||||
}
|
||||
@ -1,37 +0,0 @@
|
||||
# Copyright 2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="OpenGL and OpenGL ES reference page sources"
|
||||
HOMEPAGE="https://github.com/KhronosGroup/OpenGL-Refpages"
|
||||
EGIT_REPO_URI="https://github.com/KhronosGroup/OpenGL-Refpages"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
dev-libs/libxslt
|
||||
app-text/docbook-xsl-stylesheets
|
||||
"
|
||||
|
||||
# gl2.1 = OpenGL 2.1 (including fixed functionality)
|
||||
# es3 = OpenGL ES 3.x (will always be the latest ES, currently 3.2)
|
||||
# gl4 = OpenGL 4.x (current) API and GLSL pages
|
||||
INSTALLMANDIRS=(gl4 es3 gl2.1)
|
||||
|
||||
src_compile() {
|
||||
for MANPAGES in ${INSTALLMANDIRS[@]}; do
|
||||
xsltproc --noout --nonet /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl "${MANPAGES}"/*.xml || die
|
||||
done
|
||||
}
|
||||
|
||||
src_install() {
|
||||
doman *.3G
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user