diff --git a/packages/ctags.rb b/packages/ctags.rb index 07005abd6..71263fdcd 100644 --- a/packages/ctags.rb +++ b/packages/ctags.rb @@ -1,18 +1,18 @@ -require 'package' # include package class file +require 'package' -class Ctags < Package # name the package and make it a Package class instance +class Ctags < Package description 'Exuberant Ctags is a multilanguage reimplementation of the Unix ctags utility.' homepage 'https://sourceforge.net/projects/ctags/' - version '5.8' # software version - source_url 'http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz' # software source tarball url - source_sha1 '482da1ecd182ab39bbdc09f2f02c9fba8cd20030' # source tarball sha1 sum - - def self.build # self.build contains commands needed to build the software from source + version '5.8' + source_url 'http://prdownloads.sourceforge.net/ctags/ctags-5.8.tar.gz' + source_sha1 '482da1ecd182ab39bbdc09f2f02c9fba8cd20030' + + def self.build system "./configure" - system "make" # ordered chronologically + system "make" + end + + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end - - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system - end # during installation end diff --git a/packages/di.rb b/packages/di.rb index 58d696121..71de2cbb5 100644 --- a/packages/di.rb +++ b/packages/di.rb @@ -1,7 +1,7 @@ require 'package' class Di < Package - description ''di' is a disk information utility, displaying everything (and more) that your 'df' command does.' + description '\'di\' is a disk information utility, displaying everything (and more) that your \'df\' command does.' homepage 'http://gentoo.com/di/' version '4.43' source_url 'http://gentoo.com/di/di-4.43.tar.gz' diff --git a/packages/expat.rb b/packages/expat.rb index 9458d48ff..f948e9260 100644 --- a/packages/expat.rb +++ b/packages/expat.rb @@ -1,7 +1,7 @@ require 'package' class Expat < Package - description 'James Clark's Expat XML parser library in C.' + description 'James Clark\'s Expat XML parser library in C.' homepage 'https://sourceforge.net/projects/expat/' version '2.2.0' source_url 'https://sourceforge.net/projects/expat/files/expat/2.2.0/expat-2.2.0.tar.bz2/download' diff --git a/packages/gdb.rb b/packages/gdb.rb index d00fce3ab..c1b0ff143 100644 --- a/packages/gdb.rb +++ b/packages/gdb.rb @@ -1,7 +1,7 @@ require 'package' class Gdb < Package - description 'GDB, the GNU Project debugger, allows you to see what is going on 'inside' another program while it executes -- or what another program was doing at the moment it crashed.' + description 'GDB, the GNU Project debugger, allows you to see what is going on \'inside\' another program while it executes -- or what another program was doing at the moment it crashed.' homepage 'https://www.gnu.org/software/gdb/' version '7.12.1.' source_url 'https://ftp.gnu.org/gnu/gdb/gdb-7.12.1.tar.xz' diff --git a/packages/htop.rb b/packages/htop.rb index b70e16bc8..1a6abe9f8 100644 --- a/packages/htop.rb +++ b/packages/htop.rb @@ -4,18 +4,18 @@ class Htop < Package description 'htop is an interactive process viewer for Unix systems.' homepage 'https://hisham.hm/htop/' version '2.0.2' - source_url 'http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz' # software source tarball url + source_url 'http://hisham.hm/htop/releases/2.0.2/htop-2.0.2.tar.gz' source_sha1 '201f793f13dce2448e36047079875b9bd5bba75a' depends_on 'buildessential' depends_on 'ncurses' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./configure --disable-unicode" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/inetutils.rb b/packages/inetutils.rb index 4e32e3ea0..43793ae79 100644 --- a/packages/inetutils.rb +++ b/packages/inetutils.rb @@ -4,17 +4,17 @@ class Inetutils < Package description 'Inetutils - GNU network utilities is a collection of common network programs.' homepage 'https://www.gnu.org/software/inetutils/' version '1.9.4' - source_url 'http://ftp.gnu.org/gnu/inetutils/inetutils-1.9.4.tar.gz' # Software source tarball url + source_url 'http://ftp.gnu.org/gnu/inetutils/inetutils-1.9.4.tar.gz' source_sha1 'defae98a27c0e9516c4ef2321a374a3645adb3b9' depends_on 'buildessential' - def self.build # self.build contains commands needed to build the software from source - system "./configure" - system "make" # ordered chronologically + def self.build + system "./configure" + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/leveldb.rb b/packages/leveldb.rb index eb81213f7..963a86d34 100644 --- a/packages/leveldb.rb +++ b/packages/leveldb.rb @@ -1,17 +1,17 @@ -require 'package' # include package class file +require 'package' -class Leveldb < Package # name the package and make it a Package class instance +class Leveldb < Package description 'LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.' homepage 'https://leveldb.googlecode.com/' - version '1.19.0' # software version - source_url 'https://github.com/google/leveldb/archive/v1.19.tar.gz' # software source tarball url - source_sha1 '864b45b4a8d1ad400b9115ff6d3c9fb1f79be82b' # source tarball sha1 sum + version '1.19.0' + source_url 'https://github.com/google/leveldb/archive/v1.19.tar.gz' + source_sha1 '864b45b4a8d1ad400b9115ff6d3c9fb1f79be82b' - def self.build # self.build contains commands needed to build the software from source - system "make" # ordered chronologically + def self.build + system "make" end - def self.install # self.install contains commands needed to install the software on the target system + def self.install system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/include" system "mkdir", "-p", "#{CREW_DEST_DIR}/usr/local/lib" system "cp", "-R", "include/leveldb", "#{CREW_DEST_DIR}/usr/local/include" diff --git a/packages/libevent.rb b/packages/libevent.rb index 7b2c9da91..097c531f5 100644 --- a/packages/libevent.rb +++ b/packages/libevent.rb @@ -1,19 +1,19 @@ -require 'package' # include package class file +require 'package' -class Libevent < Package # name the package and make it a Package class instance +class Libevent < Package description 'The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached.' homepage 'http://libevent.org/' - version '2.1.8' # software version - source_url 'https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz' # software source tarball url - source_sha1 '2a1b8bb7a262d3fd0ed6a080a20991a6eed675ec' # source tarball sha1 sum + version '2.1.8' + source_url 'https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz' + source_sha1 '2a1b8bb7a262d3fd0ed6a080a20991a6eed675ec' depends_on 'openssl' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./configure" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system - end # during installation + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" + end end diff --git a/packages/make.rb b/packages/make.rb index 48e0e5811..6aad9c36f 100644 --- a/packages/make.rb +++ b/packages/make.rb @@ -1,7 +1,7 @@ require 'package' class Make < Package - description 'GNU Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files.' + description 'GNU Make is a tool which controls the generation of executables and other non-source files of a program from the program\'s source files.' homepage 'https://www.gnu.org/software/make/' version '4.2' source_url 'ftp://ftp.gnu.org/gnu/make/make-4.2.tar.bz2' diff --git a/packages/mlocate.rb b/packages/mlocate.rb index 917a3b6d8..ca1295d9f 100644 --- a/packages/mlocate.rb +++ b/packages/mlocate.rb @@ -4,18 +4,18 @@ class Mlocate < Package description 'mlocate is a locate/updatedb implementation.' homepage 'https://fedorahosted.org/mlocate/' version '0.26-1' - source_url 'https://releases.pagure.org/mlocate/mlocate-0.26.tar.xz' # software source tarball url - source_sha1 'c6e6d81b25359c51c545f4b8ba0f3b469227fcbc' # source tarball sha1 sum + source_url 'https://releases.pagure.org/mlocate/mlocate-0.26.tar.xz' + source_sha1 'c6e6d81b25359c51c545f4b8ba0f3b469227fcbc' - def self.build # self.build contains commands needed to build the software from source - system "mkdir -p /usr/local/db/mlocate" # create dbdir directory where mlocate.db will be generated - system "sed -i 's,\$(localstatedir)/,/usr/local/db/,g' Makefile.*" # change from /var (symlinked from /usr/local/var) to /usr/local/db - system "sed -i \"s/groupname = mlocate/groupname = $(whoami)/g\" Makefile.*" # change groupname in all Makefiles to avoid permission issues + def self.build + system "mkdir -p /usr/local/db/mlocate" + system "sed -i 's,\$(localstatedir)/,/usr/local/db/,g' Makefile.*" + system "sed -i \"s/groupname = mlocate/groupname = $(whoami)/g\" Makefile.*" system "./configure" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/moonbuggy.rb b/packages/moonbuggy.rb index 444e65eaf..f23946093 100644 --- a/packages/moonbuggy.rb +++ b/packages/moonbuggy.rb @@ -1,20 +1,20 @@ require 'package' class Moonbuggy < Package - description 'Moon-buggy is a simple character graphics game where you drive some kind of car across the moon's surface.' + description 'Moon-buggy is a simple character graphics game where you drive some kind of car across the moon\'s surface.' homepage 'http://www.seehuhn.de/pages/moon-buggy' version '1.0.51' - source_url 'http://m.seehuhn.de/programs/moon-buggy-1.0.51.tar.gz' # software source tarball url - source_sha1 '7f1c5df99944acfe98eeb5f8d5ab6f28ef61ee7e' # source tarball sha1 sum + source_url 'http://m.seehuhn.de/programs/moon-buggy-1.0.51.tar.gz' + source_sha1 '7f1c5df99944acfe98eeb5f8d5ab6f28ef61ee7e' depends_on 'ncurses' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./configure" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/nano.rb b/packages/nano.rb index 6ca909d02..c4175f18d 100644 --- a/packages/nano.rb +++ b/packages/nano.rb @@ -1,21 +1,21 @@ require 'package' class Nano < Package - description 'Nano's ANOther editor, an enhanced free Pico clone.' + description 'Nano\'s ANOther editor, an enhanced free Pico clone.' homepage 'https://www.nano-editor.org/' version '2.7.1' - source_url 'ftp://ftp.gnu.org/pub/gnu/nano/nano-2.7.1.tar.gz' # software source tarball url + source_url 'ftp://ftp.gnu.org/pub/gnu/nano/nano-2.7.1.tar.gz' source_sha1 '5ad089d08e68dc7977f51403de6d7872686647af' depends_on 'buildessential' depends_on 'ncurses' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./configure CPPFLAGS=\"-I/usr/local/include/ncurses\"" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/ncftp.rb b/packages/ncftp.rb index c38ddf23b..32aefa110 100644 --- a/packages/ncftp.rb +++ b/packages/ncftp.rb @@ -4,17 +4,17 @@ class Ncftp < Package description 'NcFTP Client (also known as just NcFTP) is a set of FREE application programs implementing the File Transfer Protocol (FTP).' homepage 'http://ncftp.com/ncftp/' version '3.2.6' - source_url 'ftp://ftp.ncftp.com/ncftp/ncftp-3.2.6-src.tar.gz' # Software source tarball url + source_url 'ftp://ftp.ncftp.com/ncftp/ncftp-3.2.6-src.tar.gz' source_sha1 'e2351802b40db18d6cbab2537a9644cd858b934d' depends_on 'buildessential' - - def self.build # self.build contains commands needed to build the software from source - system "./configure" - system "make" # ordered chronologically + + def self.build + system "./configure" + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/nethack4.rb b/packages/nethack4.rb index 8451aea53..d5c1bdae3 100644 --- a/packages/nethack4.rb +++ b/packages/nethack4.rb @@ -1,7 +1,7 @@ require 'package' class Nethack4 < Package - description 'NetHack is a 'roguelike' game following in the same tradition; the player controls an adventurer delving into a randomly generated dungeon to retrieve the Amulet of Yendor from its depths.' + description 'NetHack is a \'roguelike\' game following in the same tradition; the player controls an adventurer delving into a randomly generated dungeon to retrieve the Amulet of Yendor from its depths.' homepage 'http://nethack4.org/' # "nethack4" fork of nethack with a few patches and a modern build system version '4.3.0-beta2' diff --git a/packages/nginx.rb b/packages/nginx.rb index bf2791fca..f197d2c2d 100644 --- a/packages/nginx.rb +++ b/packages/nginx.rb @@ -4,18 +4,18 @@ class Nginx < Package description 'nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev.' homepage 'http://nginx.org/' version '1.11.6-1' - source_url 'http://nginx.org/download/nginx-1.11.6.tar.gz' # software source tarball url - source_sha1 '51903b721a5ee721568fc59f0a243df5356a98de' # source tarball sha1 sum + source_url 'http://nginx.org/download/nginx-1.11.6.tar.gz' + source_sha1 '51903b721a5ee721568fc59f0a243df5356a98de' depends_on 'pcre' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./configure" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "sudo ln -sf /usr/local/nginx/sbin/nginx /usr/local/bin/nginx" system "echo all NGINX things are in /usr/local/nginx" system "echo pages are in /usr/local/nginx/html" diff --git a/packages/nmap.rb b/packages/nmap.rb index 8aad79589..ea1393098 100644 --- a/packages/nmap.rb +++ b/packages/nmap.rb @@ -1,20 +1,20 @@ require 'package' class Nmap < Package - description 'Nmap ('Network Mapper') is a free and open source (license) utility for network discovery and security auditing.' + description 'Nmap (\'Network Mapper\') is a free and open source (license) utility for network discovery and security auditing.' homepage 'https://nmap.org/' version '7.31' - source_url 'https://nmap.org/dist/nmap-7.31.tgz' # Software source tarball url + source_url 'https://nmap.org/dist/nmap-7.31.tgz' source_sha1 'ccf1bb34463f39a645d9a924ce9e3c9e15eefbbf' depends_on 'buildessential' - def self.build # self.build contains commands needed to build the software from source - system "./configure --with-pcap=linux --without-zenmap" - system "make" # ordered chronologically + def self.build + system "./configure --with-pcap=linux --without-zenmap" + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/openconnect.rb b/packages/openconnect.rb index 3967fda43..057fd419e 100644 --- a/packages/openconnect.rb +++ b/packages/openconnect.rb @@ -1,8 +1,6 @@ require 'package' # @todo: provide vpnc-script (standalone), instructions for manual install: - description 'OpenConnect is an SSL VPN client initially created to support Cisco's AnyConnect SSL VPN.' - homepage 'http://www.infradead.org/openconnect/' # # sudo su - # mkdir /usr/local/etc/vpnc @@ -30,6 +28,8 @@ require 'package' class Openconnect < Package version '7.06-1' + description 'OpenConnect is an SSL VPN client initially created to support Cisco\'s AnyConnect SSL VPN.' + homepage 'http://www.infradead.org/openconnect/' source_url 'ftp://ftp.infradead.org/pub/openconnect/openconnect-7.06.tar.gz' source_sha1 '2351408693aab0c6bc97d37e68b4a869fbb217ed' diff --git a/packages/php5.rb b/packages/php5.rb index 8c53bc468..b600444d9 100644 --- a/packages/php5.rb +++ b/packages/php5.rb @@ -4,10 +4,10 @@ class Php5 < Package description 'PHP is a popular general-purpose scripting language that is especially suited to web development.' homepage 'http://www.php.net/' version '5.6.30' - source_url 'http://php.net/distributions/php-5.6.30.tar.xz' # software source tarball url - source_sha1 '1bca4a340e6aaf82a3e940b0f2de3f36518238e4' # source tarball sha1 sum + source_url 'http://php.net/distributions/php-5.6.30.tar.xz' + source_sha1 '1bca4a340e6aaf82a3e940b0f2de3f36518238e4' - depends_on 'pkgconfig' # add package dependencies + depends_on 'pkgconfig' depends_on 'zlibpkg' depends_on 'libpng' depends_on 'libxml2' @@ -17,7 +17,7 @@ class Php5 < Package depends_on 'pcre' depends_on 'readline' - def self.build # self.build contains commands needed to build the software from source + def self.build system './configure \ --prefix=/usr/local \ --with-curl \ @@ -28,11 +28,11 @@ class Php5 < Package --with-pcre-regex \ --with-readline \ --with-zlib' - system 'make' # ordered chronologically + system 'make' end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "INSTALL_ROOT=#{CREW_DEST_DIR}", "install" # remember to include INSTALL_ROOT set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "INSTALL_ROOT=#{CREW_DEST_DIR}", "install" # clean up some files created under #{CREW_DEST_DIR}. check http://pear.php.net/bugs/bug.php?id=20383 for more details system "mv", "#{CREW_DEST_DIR}/.depdb", "#{CREW_DEST_DIR}/usr/local/lib/php" diff --git a/packages/php7.rb b/packages/php7.rb index 60b41a82c..8fa91121a 100644 --- a/packages/php7.rb +++ b/packages/php7.rb @@ -4,8 +4,8 @@ class Php7 < Package description 'PHP is a popular general-purpose scripting language that is especially suited to web development.' homepage 'http://www.php.net/' version '7.1.5' - source_url 'http://php.net/distributions/php-7.1.5.tar.xz' # software source tarball url - source_sha1 '8c1622929b838005c72fb4949be9e249ca927fb3' # source tarball sha1 sum + source_url 'http://php.net/distributions/php-7.1.5.tar.xz' + source_sha1 '8c1622929b838005c72fb4949be9e249ca927fb3' depends_on 'pkgconfig' depends_on 'zlibpkg' @@ -17,7 +17,7 @@ class Php7 < Package depends_on 'pcre' depends_on 'readline' - def self.build # self.build contains commands needed to build the software from source + def self.build system './configure \ --prefix=/usr/local \ --with-curl \ @@ -28,11 +28,11 @@ class Php7 < Package --with-pcre-regex \ --with-readline \ --with-zlib' - system 'make' # ordered chronologically + system 'make' end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "INSTALL_ROOT=#{CREW_DEST_DIR}", "install" # remember to include INSTALL_ROOT set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "INSTALL_ROOT=#{CREW_DEST_DIR}", "install" # clean up some files created under #{CREW_DEST_DIR}. check http://pear.php.net/bugs/bug.php?id=20383 for more details system "mv", "#{CREW_DEST_DIR}/.depdb", "#{CREW_DEST_DIR}/usr/local/lib/php" diff --git a/packages/pwgen.rb b/packages/pwgen.rb index 20a067ef7..3463c409f 100644 --- a/packages/pwgen.rb +++ b/packages/pwgen.rb @@ -1,7 +1,7 @@ require 'package' class Pwgen < Package - description 'Pwgen is a small, GPL'ed password generator which creates passwords which can be easily memorized by a human.' + description 'Pwgen is a small, GPL\'ed password generator which creates passwords which can be easily memorized by a human.' homepage 'https://sourceforge.net/projects/pwgen/' version '2.07' source_url 'https://pilotfiber.dl.sourceforge.net/project/pwgen/pwgen/2.07/pwgen-2.07.tar.gz' diff --git a/packages/python27.rb b/packages/python27.rb index d08c49ce6..f550938fe 100644 --- a/packages/python27.rb +++ b/packages/python27.rb @@ -4,19 +4,19 @@ class Python27 < Package description 'Python is a programming language that lets you work quickly and integrate systems more effectively.' homepage 'https://www.python.org/' version '2.7.13-1' - source_url 'https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz' # software source tarball url - source_sha1 '18a8f30a0356c751b8d0ea6f76e764cab13ee046' # source tarball sha1 sum + source_url 'https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz' + source_sha1 '18a8f30a0356c751b8d0ea6f76e764cab13ee046' depends_on 'bz2' depends_on 'ncurses' depends_on 'openssl' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./configure --prefix=/usr/local CPPFLAGS=\"-I/usr/local/include -I/usr/local/include/ncurses\" LDFLAGS=\"-L/usr/local/lib\" CFLAGS=\" -fPIC\" --with-ensurepip=install" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/python3.rb b/packages/python3.rb index 6f59cc2c1..41647a7df 100644 --- a/packages/python3.rb +++ b/packages/python3.rb @@ -2,19 +2,19 @@ require 'package' class Python3 < Package version '3.6.0' - source_url 'https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz' # software source tarball url - source_sha1 '120d536ee14a3153fc2435838c0f27c2e25cd29c' # source tarball sha1 sum + source_url 'https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz' + source_sha1 '120d536ee14a3153fc2435838c0f27c2e25cd29c' depends_on 'bz2' depends_on 'ncurses' depends_on 'openssl' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./configure --prefix=/usr/local CPPFLAGS=\"-I/usr/local/include -I/usr/local/include/ncurses\" LDFLAGS=\"-L/usr/local/lib\" CFLAGS=\" -fPIC\"" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/rsync.rb b/packages/rsync.rb index eaeaef4fc..d08649f7f 100644 --- a/packages/rsync.rb +++ b/packages/rsync.rb @@ -4,17 +4,17 @@ class Rsync < Package description 'rsync is an open source utility that provides fast incremental file transfer.' homepage 'https://rsync.samba.org/' version '3.1.2' - source_url 'http://rsync.samba.org/ftp/rsync/src/rsync-3.1.2.tar.gz' # software source tarball url + source_url 'http://rsync.samba.org/ftp/rsync/src/rsync-3.1.2.tar.gz' source_sha1 '0d4c7fb7fe3fc80eeff922a7c1d81df11dbb8a1a' depends_on 'buildessential' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./configure" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/screen.rb b/packages/screen.rb index 7b81534cc..99fd474d9 100644 --- a/packages/screen.rb +++ b/packages/screen.rb @@ -1,19 +1,20 @@ -require 'package' # include package class file +require 'package' -class Screen < Package # name the package and make it a Package class instance +class Screen < Package description 'Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells.' homepage 'https://www.gnu.org/software/screen/' - version '4.3.1' # software version - source_url 'ftp://ftp.gnu.org/gnu/screen/screen-4.3.1.tar.gz' # software source tarball url - source_sha1 'a524761504e28480517e338b20c852f2ab100c93' # source tarball sha1 sum + version '4.3.1' + source_url 'ftp://ftp.gnu.org/gnu/screen/screen-4.3.1.tar.gz' + source_sha1 'a524761504e28480517e338b20c852f2ab100c93' - depends_on 'ncurses' # software dependencies + depends_on 'ncurses' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./configure --prefix=/usr/local" - system "make" end + system "make" + end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system - end # during installation + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" + end end diff --git a/packages/scrollz.rb b/packages/scrollz.rb index 5432ce1ca..f8811f077 100644 --- a/packages/scrollz.rb +++ b/packages/scrollz.rb @@ -4,18 +4,18 @@ class Scrollz < Package description 'ScrollZ is an advanced IRC client based on ircII.' homepage 'http://www.scrollz.info/' version '2.3' - source_url 'http://www.scrollz.info/download/ScrollZ-2.3.tar.gz' # Software source tarball url + source_url 'http://www.scrollz.info/download/ScrollZ-2.3.tar.gz' source_sha1 '991e6acfdf95d84ca159a37336c2d45a624d432f' depends_on 'buildessential' depends_on 'ncurses' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./configure" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/slang.rb b/packages/slang.rb index 7e7360f42..ec50f6211 100644 --- a/packages/slang.rb +++ b/packages/slang.rb @@ -1,7 +1,7 @@ require 'package' class Slang < Package - description 'S-Lang is a multi-platform programmer's library designed to allow a developer to create robust multi-platform software.' + description 'S-Lang is a multi-platform programmer\'s library designed to allow a developer to create robust multi-platform software.' homepage 'http://www.jedsoft.org/slang/' version '2.3.1a' source_url 'http://www.jedsoft.org/releases/slang/slang-2.3.1a.tar.bz2' diff --git a/packages/socat.rb b/packages/socat.rb index 170c42109..dabeb610b 100644 --- a/packages/socat.rb +++ b/packages/socat.rb @@ -1,7 +1,7 @@ require 'package' class Socat < Package - description 'SOcket CAT is a multipurpose relay 'netcat++' (extended design, new implementation).' + description 'SOcket CAT is a multipurpose relay \'netcat++\' (extended design, new implementation).' homepage 'http://www.dest-unreach.org/socat/' version '1.7.3.1' source_url 'http://www.dest-unreach.org/socat/download/socat-1.7.3.1.tar.gz' diff --git a/packages/texinfo.rb b/packages/texinfo.rb index 0d6c1fbc0..cd018d093 100644 --- a/packages/texinfo.rb +++ b/packages/texinfo.rb @@ -4,15 +4,15 @@ class Texinfo < Package description 'Texinfo is the official documentation format of the GNU project.' homepage 'https://www.gnu.org/software/texinfo/' version '6.3' - source_url 'http://ftp.gnu.org/gnu/texinfo/texinfo-6.3.tar.gz' # software source tarball url - source_sha1 '29b16c646c7bc9cd351b2f1d8dafdce70e5377f6' # source tarball sha1 sum + source_url 'http://ftp.gnu.org/gnu/texinfo/texinfo-6.3.tar.gz' + source_sha1 '29b16c646c7bc9cd351b2f1d8dafdce70e5377f6' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./configure" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" end end diff --git a/packages/tig.rb b/packages/tig.rb index 01f1b0c16..f8c71a1ef 100644 --- a/packages/tig.rb +++ b/packages/tig.rb @@ -1,22 +1,22 @@ -require 'package' # include package class file - -class Tig < Package # name the package and make it a Package class instance +require 'package' + +class Tig < Package description 'Tig is an ncurses-based text-mode interface for git.' homepage 'http://jonas.nitro.dk/tig/' - version '2.2.1' # software version - source_url 'https://github.com/jonas/tig/archive/tig-2.2.1.tar.gz' # software source tarball url - source_sha1 '704e35ad3f54024d7ce14dade4294aacc0744b3d' # source tarball sha1 sum + version '2.2.1' + source_url 'https://github.com/jonas/tig/archive/tig-2.2.1.tar.gz' + source_sha1 '704e35ad3f54024d7ce14dade4294aacc0744b3d' - depends_on 'readline' # software dependencies + depends_on 'readline' depends_on 'ncurses' - def self.build # self.build contains commands needed to build the software from source + def self.build system "./autogen.sh" system "./configure", "--prefix=/usr/local" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system - end # during installation + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" + end end diff --git a/packages/tmux.rb b/packages/tmux.rb index 619189747..a242903b9 100644 --- a/packages/tmux.rb +++ b/packages/tmux.rb @@ -1,22 +1,22 @@ -require 'package' # include package class file +require 'package' -class Tmux < Package # name the package and make it a Package class instance +class Tmux < Package description 'tmux is a terminal multiplexer' homepage 'http://tmux.github.io/' - version '2.2' # software version - source_url 'https://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz' # software source tarball url - source_sha1 '5ed1430bc7ef44c227e64e9401c686573dd0791a' # source tarball sha1 sum + version '2.2' + source_url 'https://github.com/tmux/tmux/releases/download/2.2/tmux-2.2.tar.gz' + source_sha1 '5ed1430bc7ef44c227e64e9401c686573dd0791a' - depends_on 'readline' # software dependencies + depends_on 'readline' depends_on 'libevent' depends_on 'ncurses' - def self.build # self.build contains commands needed to build the software from source + def self.build system "CPPFLAGS=-I/usr/local/include/ncurses ./configure" - system "make" # ordered chronologically + system "make" end - def self.install # self.install contains commands needed to install the software on the target system - system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system - end # during installation + def self.install + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" + end end diff --git a/packages/unzip.rb b/packages/unzip.rb index bfacb9d13..6c39d8e73 100644 --- a/packages/unzip.rb +++ b/packages/unzip.rb @@ -1,7 +1,7 @@ require 'package' class Unzip < Package - description 'UnZip is an extraction utility for archives compressed in .zip format (also called 'zipfiles').' + description 'UnZip is an extraction utility for archives compressed in .zip format (also called \'zipfiles\').' homepage 'http://www.info-zip.org/UnZip.html' version '1.6_1' source_url 'https://downloads.sourceforge.net/project/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz'