Commit d4ceeb16 authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #264 from lyxell/add-mandb

Add manpages
parents f3f56b37 15c65708
require 'package'
class Gdbm < Package
version '1.12'
source_url 'ftp://ftp.gnu.org/gnu/gdbm/gdbm-1.12.tar.gz'
source_sha1 '86513e8871bb376bc014e9e5a2d18a8e0a8ea2f5'
def self.build
system './configure'
system 'make'
end
def self.install
system 'make', 'install'
end
end
require 'package'
class Groff < Package
version '1.22.3'
source_url 'http://ftp.gnu.org/gnu/groff/groff-1.22.3.tar.gz'
source_sha1 '61a6808ea1ef715df9fa8e9b424e1f6b9fa8c091'
def self.build
system './configure'
system 'make'
end
def self.install
system 'make', 'install'
end
end
require 'package'
class Libpipeline < Package
version '1.4.1'
source_url 'https://download.savannah.gnu.org/releases/libpipeline/libpipeline-1.4.1.tar.gz'
source_sha1 'b31cc955f22b1aa4545dc8d00ddbde831936594f'
def self.build
system './configure'
system 'make'
end
def self.install
system 'make install'
end
end
require 'package'
class Mandb < Package
version '2.7.6'
source_url 'https://download.savannah.gnu.org/releases/man-db/man-db-2.7.6.tar.xz'
source_sha1 '35a10f80d5cf6411d5c73376fcddcec1539e788a'
def self.build
system './configure',
'--with-systemdtmpfilesdir=/usr/local/lib/tmpfiles.d', # we can't write to /usr/lib/tmpfiles.d
'--disable-cache-owner', # we can't create the user 'man'
'--with-pager=/usr/local/bin/less' # the pager is not at the default location
system 'make'
end
def self.install
system 'make', 'install'
puts ""
puts "You will have to change the default PAGER env variable to be able to use mandb:"
puts "echo \"export PAGER=/usr/local/bin/less\" >> ~/.bashrc && . ~/.bashrc"
end
depends_on 'libpipeline'
depends_on 'pkgconfig'
depends_on 'gdbm'
depends_on 'groff'
depends_on 'less'
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment