Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=bcc6cd122e2aad34fd790f0afc43a790a1145d2f

commit bcc6cd122e2aad34fd790f0afc43a790a1145d2f
Author: VMiklos <[EMAIL PROTECTED]>
Date:   Thu Sep 6 23:32:29 2007 +0200

man-1.6e-2-i686
added color support (disabled by default)

diff --git a/source/base/man/FrugalBuild b/source/base/man/FrugalBuild
index 2a4dade..3dd0fc5 100644
--- a/source/base/man/FrugalBuild
+++ b/source/base/man/FrugalBuild
@@ -3,17 +3,25 @@

pkgname=man
pkgver=1.6e
-pkgrel=1
+pkgrel=2
pkgdesc="A utility for reading man pages"
url="http://primates.ximian.com/~flucifredi/man/";
depends=('groff' 'less' 'gzip' 'gawk' 'coreutils' 'bash')
+backup=(etc/profile.d/man-colors.sh)
groups=('base')
archs=('i686' 'x86_64' 'ppc')
up2date="lynx -dump $url |grep tar.gz$|sed 's/.*-\(.*\)\.t.*/\1/;q'"
source=($url/$pkgname-$pkgver.tar.gz \
whatis $pkgname-1.6a-groff.diff \
man-1.6c-cut-duplicate-manpaths.patch \
-       man.sh)
+       man.sh man-colors.sh README.Frugalware)
+sha1sums=('7264bda7dd7bf08bdb9dac6ec7734e755ec0a8d1' \
+          '4119a2bd3b403fc0dd323c2e8b6ae2ff844b2cc5' \
+          '1153b05a81fa91d91250aea069457ed8e139faac' \
+          '82a9347fc6b9eead15ebba5365040eccf62cc902' \
+          '33ed8d61d09f8711176fd18b7ae4e3a2d3354cf6' \
+          'b51fd2d450c7a0982e605e74010256a40a3fa05e' \
+          '3a1e22acd8931537d5c2694a536913c02e0d448e')

build()
{
@@ -28,11 +36,8 @@ build()
(cd man; make PREFIX=$Fdestdir installsubdirs)
Finstall 744 /etc/cron.daily/whatis
Fexe /etc/profile.d/man.sh
+       Ffile /etc/profile.d/man-colors.sh
+       Fdoc README.Frugalware
}

# optimization ok
-sha1sums=('7264bda7dd7bf08bdb9dac6ec7734e755ec0a8d1' \
-         '4119a2bd3b403fc0dd323c2e8b6ae2ff844b2cc5' \
-         '1153b05a81fa91d91250aea069457ed8e139faac' \
-         '82a9347fc6b9eead15ebba5365040eccf62cc902' \
-         '33ed8d61d09f8711176fd18b7ae4e3a2d3354cf6')
diff --git a/source/base/man/README.Frugalware 
b/source/base/man/README.Frugalware
new file mode 100644
index 0000000..d4d059a
--- /dev/null
+++ b/source/base/man/README.Frugalware
@@ -0,0 +1,8 @@
+If you like coloured man-pages then you can enable that feature by issuing
+
+----
+# chmod +x /etc/profile.d/man-colors.sh
+----
+
+It is handled as a configuration file, so feel free to edit the colors in that
+file if you want.
diff --git a/source/base/man/man-colors.sh b/source/base/man/man-colors.sh
new file mode 100644
index 0000000..6b2635c
--- /dev/null
+++ b/source/base/man/man-colors.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# colored manpages in less
+
+export LESS_TERMCAP_mb=$'\E[01;32m'
+export LESS_TERMCAP_md=$'\E[01;32m'
+export LESS_TERMCAP_me=$'\E[0m'
+export LESS_TERMCAP_ue=$'\E[0m'
+export LESS_TERMCAP_us=$'\E[01;34m'
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to