summaryrefslogtreecommitdiff
path: root/groff
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2013-03-04 17:25:42 +0100
committerJuergen Daubert <jue@jue.li>2013-03-04 17:25:42 +0100
commit03500f719664869457657056c59e9c9a30d6406e (patch)
tree4096fb9e4e28af1aa80380caca9a11ce6dea7e6b /groff
parent7226c6d9ac345c70a78e26b9fdfac57f2e4978c1 (diff)
downloadcore-03500f719664869457657056c59e9c9a30d6406e.tar.gz
core-03500f719664869457657056c59e9c9a30d6406e.tar.xz
[notify] groff: groff: don't hard-code papersize setting
the default papersize for groff is no longer determined at build-time but must be defined in /ect/papersize now. See README for more infomations.
Diffstat (limited to 'groff')
-rw-r--r--groff/.footprint2
-rw-r--r--groff/Pkgfile8
-rw-r--r--groff/README14
3 files changed, 23 insertions, 1 deletions
diff --git a/groff/.footprint b/groff/.footprint
index b33ae8ac..7d8b4605 100644
--- a/groff/.footprint
+++ b/groff/.footprint
@@ -1,3 +1,5 @@
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/papersize
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/addftinfo
diff --git a/groff/Pkgfile b/groff/Pkgfile
index ad631c20..84feab90 100644
--- a/groff/Pkgfile
+++ b/groff/Pkgfile
@@ -4,7 +4,7 @@
name=groff
version=1.22.2
-release=1
+release=2
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
build() {
@@ -25,6 +25,12 @@ build() {
make
make DESTDIR=$PKG install
+ sed -e 's|^\(papersize\).*|\1 /etc/papersize|' \
+ -i $PKG/usr/share/groff/current/font/*/DESC
+
+ install -d $PKG/etc
+ echo 'letter' > $PKG/etc/papersize
+
rm -rf $PKG/usr/share/{info,doc}
ln -s eqn $PKG/usr/bin/geqn
diff --git a/groff/README b/groff/README
new file mode 100644
index 00000000..e414698b
--- /dev/null
+++ b/groff/README
@@ -0,0 +1,14 @@
+README for groff
+
+REQUIREMENTS
+
+PRE/POST-INSTALL
+
+as of groff version 1.22.2 release 2 the default papersize for groff can
+be defined in /etc/papersize. Just add the required papersize like 'letter'
+or 'a4' here, default is 'letter'.
+
+See
+http://www.gnu.org/software/groff/manual/html_node/DESC-File-Format.html
+for more informations.
+

Generated by cgit