[Abtlinux-svn] SF.net SVN: abtlinux: [226] src/trunk/packages/time.rb
Status: Alpha
Brought to you by:
eschabell
From: <esc...@us...> - 2006-11-22 19:00:54
|
Revision: 226 http://svn.sourceforge.net/abtlinux/?rev=226&view=rev Author: eschabell Date: 2006-11-22 11:00:51 -0800 (Wed, 22 Nov 2006) Log Message: ----------- Added simple configure, make, make install pacakge as fortune is a bit different. Added Paths: ----------- src/trunk/packages/time.rb Added: src/trunk/packages/time.rb =================================================================== --- src/trunk/packages/time.rb (rev 0) +++ src/trunk/packages/time.rb 2006-11-22 19:00:51 UTC (rev 226) @@ -0,0 +1,79 @@ +#!/usr/bin/ruby -w + +require "AbtPackage" + +## +# time.rb +# +# AbtFortune package. +# +# Created by Eric D. Schabell <er...@ab...> +# Copyright 2006, GPL. +# +# This file is part of AbTLinux. +# +# AbTLinux is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# AbTLinux is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# AbTLinux; if not, write to the Free Software Foundation, Inc., 51 Franklin +# St, Fifth Floor, Boston, MA 02110-1301 USA +## + +class Time < AbtPackage + +protected + +private + + $name = "Time" + $version = "1.7" + $srcDir = "#{$name.downcase}-#{$version}" + $packageData = { + 'name' => $name, + 'execName' => $name.downcase, + 'version' => $version, + 'srcDir' => $srcDir, + 'homepage' => "ftp://www.gnu.org/directory/GNU/time.html", + 'srcUrl' => "ftp://ftp.nluug.nl/pub/gnu/#{$name.downcase}/#{$srcdir}", + 'dependsOn' => "", + 'reliesOn' => "", + 'optionalDO' => "", + 'optionalRO' => "", + 'hashCheck' => "sha512:d759b651e343beddc0b3bd06af85881486b72319c979a2e7f752d5a34edd8b7c1c19391c5c7a2e8f6685746cc7a046bf2c8e082b31458a1dd043ed90a4cebcd1", + 'patches' => "", + 'patchesHashCheck' => "", + 'mirrorPath' => "", + 'license' => "GPL", + 'description' => "The 'time' command runs another program, then displays information about the resources used by that program, collected by the system while the program was running. You can select which information is reported and the format in which it is shown, or have 'time' save the information in a file instead of displaying it on the screen." + } + + +public + + ## + # Constructor for an AbtPackage, requires all the packge details. + # + # <b>PARAM</b> <i>Hash</i> - hash containing all pacakge data. + # + ## + def initialize() + super( $packageData ) + end + + ## + # Overriding configure. + # + # <b>RETURN</b> <i>boolean</i> - returns true. + ## + def configure + return true # nothing to do, standard makefile is fine. + end +end This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |