Major changes adding new targets and supporting build phases.

New changes include adding the following targets:

	build, configure, extract, fetch and install.

Those targets replace the not very understood old flags. Also
the code has been restructured to really understand what's going
on all the time.

--HG--
extra : convert_revision : c591d7ffd5251b7bb80e5e56bf2f4a7909c887dc
This commit is contained in:
Juan RP 2008-10-12 20:05:52 +02:00
parent f0890caaba
commit b53922a2ec
7 changed files with 527 additions and 382 deletions

8
README
View File

@ -65,9 +65,9 @@ To list installed (stowned) packages, use this:
$ pkgfs.sh list
To only extract the distfile, without configuring/building/installing:
To only extract the distfiles, without configuring/building/installing:
$ pkgfs.sh -i install foo
$ pkgfs.sh extract foo
To not remove the build directory after successful installation:
@ -75,11 +75,11 @@ To not remove the build directory after successful installation:
To only fetch the distfile:
$ pkgfs.sh -e install blah
$ pkgfs.sh fetch blah
To only install the package, _without_ stowning it into the master directory:
$ pkgfs.sh -i install blob
$ pkgfs.sh install-destdir blob
That's all for now folks. I hope you find it useful, as I do.

View File

@ -4,22 +4,29 @@
# and sets the unzip_cmd/extract_cmd variables appropiately.
#
# If unzip is already installed just return immediately.
if [ ! -x $PKGFS_MASTERDIR/bin/unzip ]; then
if [ ! -x "$PKGFS_MASTERDIR/bin/unzip" ]; then
unzip_version="5.52"
# Save pkgname before installing unzip.
save_pkgname=$pkgname
check_installed_tmpl unzip $unzip_version
if [ "$?" -ne 0 ]; then
echo "=> unzip not installed, will install it."
install_tmpl unzip
check_installed_pkg unzip $unzip_version
if [ $? -ne 0 ]; then
echo "=> \`\`$pkg´´ package requires unzip for extraction."
#
# Install dependencies required by unzip.
#
install_builddeps_required_pkg unzip-$unzip_version
#
# Install the unzip package now.
#
install_pkg unzip
#
# Continue with previous template that called us.
#
reset_tmpl_vars
run_file $PKGFS_TEMPLATESDIR/$save_pkgname.tmpl
check_tmpl_vars $save_pkgname
setup_tmpl $save_pkgname
fi
unset save_pkgname

874
pkgfs.sh

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,7 @@
# Template build file for 'gmake'
pkgname=gmake
version=3.81
wrksrc="make-$version"
extract_sufx=".tar.bz2"
distfiles="make-$version"
url=http://ftp.gnu.org/pub/gnu/make

View File

@ -1,9 +1,9 @@
# Template build file for 'libtool'
pkgname=libtool
version=2.2.6a
wrksrc="$pkgname-2.2.6"
extract_sufx=".tar.gz"
patch_files="libtool-fix-ltmain.sh.diff"
wrksrc=$pkgname-2.2.6
url=http://ftp.gnu.org/pub/gnu/libtool
build_style=gnu_configure
short_desc="Generic library support"

View File

@ -1,8 +1,8 @@
# Template file for 'unzip'
pkgname=unzip
version=5.52
patch_files=$pkgname-fix-unzipsfx.diff
wrksrc=$pkgname-$version
patch_files=$pkgname-fix-unzipsfx.diff
distfiles=unzip552
extract_sufx=".tgz"
url=ftp://ftp.info-zip.org/pub/infozip/src/

View File

@ -1,7 +1,6 @@
# Template build file for 'zip'.
pkgname=zip
version=2.32
wrksrc="$pkgname-$version"
distfiles="zip232"
extract_sufx=".tgz"
url=ftp://ftp.info-zip.org/pub/infozip/src