groff: update to 1.22.2; cross build support.
This commit is contained in:
parent
5bd75b87c8
commit
1dc864c9e9
|
@ -1,14 +1,8 @@
|
||||||
# Template file for 'groff-doc'.
|
# Template file for 'groff-doc'.
|
||||||
#
|
#
|
||||||
short_desc="${sourcepkg} documentation"
|
short_desc="${short_desc} - documentation"
|
||||||
long_desc="${long_desc}
|
|
||||||
|
|
||||||
This package contains the GNU Groff documentation."
|
|
||||||
|
|
||||||
noarch=yes
|
noarch=yes
|
||||||
|
|
||||||
do_install()
|
do_install() {
|
||||||
{
|
vmove usr/share/doc usr/share
|
||||||
mkdir -p ${DESTDIR}/usr/share
|
|
||||||
mv ${SRCPKGDESTDIR}/usr/share/doc ${DESTDIR}/usr/share
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,29 +1,42 @@
|
||||||
# Template file for 'groff'
|
# Template file for 'groff'
|
||||||
pkgname=groff
|
pkgname=groff
|
||||||
version=1.21
|
version=1.22.2
|
||||||
homepage="http://www.gnu.org/software/groff/groff.html"
|
revision=1
|
||||||
distfiles="http://ftp.gnu.org/gnu/groff/groff-$version.tar.gz"
|
makedepends="perl bison zlib-devel"
|
||||||
build_style=gnu-configure
|
crossmakedepends="zlib-devel"
|
||||||
configure_args="--without-x"
|
|
||||||
revision=3
|
|
||||||
makedepends="bison zlib-devel"
|
|
||||||
short_desc="The GNU troff text-formatting system"
|
short_desc="The GNU troff text-formatting system"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
checksum=344e6af5480e7ab4ec51e2a2ed10acd69ba3e062d285b6d5f6d49fb5ed2f9f7a
|
homepage="http://www.gnu.org/software/groff/groff.html"
|
||||||
long_desc="
|
distfiles="http://ftp.gnu.org/gnu/groff/groff-${version}.tar.gz"
|
||||||
The Groff package contains the traditional UN*X text formatting tools troff,
|
checksum=380864dac4772e0c0d7b1282d25d0c5fd7f63baf45c87c4657afed22a13d2076
|
||||||
nroff, tbl, eqn, and pic. These utilities, together with the man package,
|
|
||||||
are essential for displaying the online manual pages. Output can be produced
|
|
||||||
in a number of formats including plain ASCII and PostScript.
|
|
||||||
|
|
||||||
All the standard macro packages are supported. A number of other utilities
|
|
||||||
are also included together with several fonts."
|
|
||||||
|
|
||||||
subpackages="groff-doc"
|
subpackages="groff-doc"
|
||||||
|
|
||||||
|
if [ "$XBPS_CROSS_TRIPLET" ]; then
|
||||||
|
makedepends="perl bison groff"
|
||||||
|
fi
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
if [ "$XBPS_CROSS_TRIPLET" ]; then
|
||||||
|
sed -i \
|
||||||
|
-e '/^GROFFBIN=/s:=.*:=/usr/bin/groff:' \
|
||||||
|
-e '/^TROFFBIN=/s:=.*:=/usr/bin/troff:' \
|
||||||
|
-e '/^GROFF_BIN_PATH=/s:=.*:=:' \
|
||||||
|
-e '/^GROFF_BIN_DIR=/s:=.*:=:' \
|
||||||
|
contrib/*/Makefile.sub \
|
||||||
|
doc/Makefile.in \
|
||||||
|
doc/Makefile.sub
|
||||||
|
fi
|
||||||
|
./configure ${CONFIGURE_SHARED_ARGS} --without-x --disable-rpath
|
||||||
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
make TROFFBIN=troff GROFFBIN=groff GROFF_BIN_PATH= ${makejobs}
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
make DESTDIR=${DESTDIR} install
|
||||||
|
|
||||||
post_install() {
|
|
||||||
# Remove unused stuff.
|
# Remove unused stuff.
|
||||||
rm -rf ${DESTDIR}/usr/lib
|
rm -rf ${DESTDIR}/usr/lib
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue