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
Previously it was using the one in PKGFS_TEMPLATESDIR, therefore
if it was compressed it was uncompressing it directly!
--HG--
extra : convert_revision : 210afd8662e0f9dcb6907a4d031a3197686bbdb8
meta-templates are just packages that do not install or remove stuff
but only have dependencies.
For testing this, I added the xorg-fonts-0.1 template; it just
depends in some of all X.org fonts packages.
--HG--
extra : convert_revision : c19e937dfd34eb8f0a0cedd4cba1297be765a253
This specifies the number of GNU/BSD make jobs while building packages.
It's disabled by default.
--HG--
extra : convert_revision : d422b7df36276b849e2a19113c5407ed67bffa68
Introduce run_stuff_<state>_<stage>_cmd. These are used to run
a specific command before or after the specified stage.
Introduce two new helpers: fontconfig-update.sh and mkfontxx-rebuild.sh.
The first runs fc-cache once fontconfig is installed, the second
rebuilds the fonts.dir and fonts.scale files in a directory for
a template.
Allow run_stuff_* to execute a script with any path, not just
from PKGFS_TEMPLATESDIR.
That means that now if you install GTK+ and any fonts package,
gtk-demo will work without any additional stuff.
--HG--
extra : convert_revision : c8aa7eb8d1ab958f64808af0d4c1cce8760d012e
It's a very basic routine in shell+sed that checks if the installed
package version is greater than the one required. It works by removing
all stuff that is not a digit from $version, and comparing with
-gt or -eq to the required version.
It's not optimal and will give errors, but for now seems to work.
--HG--
extra : convert_revision : 5773180344f6759d0992a837f02608fe61603664
how packages are found.
First: I removed all these *-deps.db files and only a single file
is used now "build-depends.db"; it's smaller and will be easier
to handle in the future... when "run-depends.db" is added :-)
Second: there's no need to specify version of package anymore;
before you had to do:
$ pkgfs.sh install git-1.6.0.2
now you only do:
$ pkgfs.sh install git
This will read the variables located at PKGFS_TEMPLATESDIR/git.tmpl
and will the install the version that is there.
--HG--
extra : convert_revision : 9e3e5d70965a69c76f59e322b7c7b674d627af52
If the configuration file is not specified through the -c flag, try
to find it before at default location, and as last resort in current
directory.
This avoids having to specify -c all the time, even if you are using
it from distribution dir.
--HG--
extra : convert_revision : d0b48a1e53a064fe011c72c4f2492a897b113179
by pango itself.
To be able to run those helpers once the package has been stowned
properly, another variable available for templates has been added:
"postinstall_helpers".
This accepts a list of template helper names, e.g:
postinstall_helpers="gtk-update-gdkpixbufloaders.sh gtk-update-immodules.sh".
Also rather than setting extract_cmd itself in pkgfs.sh when
extract_sufx=".zip", set it in the helper itself.
--HG--
extra : convert_revision : 0f55c35f201daf6ff2e6d18cc808d0a34d8f4ddf
This is the directory where the configuration files in a package
will be installed. pkgfs won't have control over it, so if a package
overwrites them, be sure to make a backup!
--HG--
extra : convert_revision : a96e3871f7683f96b8711aa060dddadcb4970cb2
- Fix a bug in unzip-extraction.sh that skipped the package that
requested unzip and instead used the origin template.
- Pass CFLAGS, CXXFLAGS and CPPFLAGS through the environment and unset
them once the package has been installed.
- Do not show the dependencies required for a pkg more than once time.
--HG--
extra : convert_revision : 731135558d29787ab5178b80df3578420872709d
and extraction of zip distfiles via a new helper:
unzip-extraction.sh.
When a new template uses extract_sufx=".zip" and the unzip command
is not found on PKGFS_MASTERDIR/bin/unzip, the unzip package will
be installed automatically.
Also add jasper-1.900.1 template that uses a zip distfile.
--HG--
extra : convert_revision : a979bdd3aef82d64e490606c21aa8f557d76fdbd
Use them if package doesn't use defaults.
While here always create $wrksrc/libtool if libtool is installed,
sometimes it's not there and you might need it anyway.
This fixes jpeg package.
--HG--
extra : convert_revision : 6d846b82f44bc4b2e837c6cb6355b4d18bc7edfb
a package into destdir but do not want to have it in masterdir.
Useful to test different versions, with incompatible ABI changes, etc.
--HG--
extra : convert_revision : cd13448fb92fdf0df6547477c7e9d7343bb197a0
run_stuff_before="configure build install"
while here, document them in example.tmpl.
--HG--
extra : convert_revision : acca2ad2aed2467b244037b60132cf5461057acc
now work on pkgfs.
While doing this work I added some new variables that can be used in
templates:
run_stuff_before="<stage>"
run_stuff_after="<stage>"
run_stuff_before_<stage>_file
run_stuff_after_<stage>_file
These can be used in a template when you need to do some stuff before
or after the stage specified, and the file will be read and the commands
on it executed.
Now that finally perl modules work, add the following templates:
intltool-0.40.4 and perl-XML-Parser-2.36.
Also mktmpl.sh has been updated to understand build_style=perl_module.
ENJOY!
--HG--
extra : convert_revision : 53c5148f1ba703e2b5af6e43f71668aac54a37d2
changes to allow better linking flags in future packages through
pkg-config.
Removed the PKGFS_TEMPLATESDIR, PKGFS_DEPSDIR and others that weren't
too useful. Instead use a single PKGFS_DISTRIBUTIONDIR on which all
those directories/files can be found.
Added a template helper for pkg-config, that changes a pkg-config file
after it's installed to produce correct linker paths.
More helpers could be added in the future.
--HG--
extra : convert_revision : a42fd2e72915a4219714de92579011bca2b0f4a6
so that we can install the info files into the same directory, as well
as not requiring passing stuff from random templates.
While here use merge-info from Xstow to merge two info dir files.
As bonus I added git-1.6.0.2 and its dependencies, based on work done by
morr@. Thank you!
A git package built with pkgfs is fully functional now, enjoy!
--HG--
extra : convert_revision : 97c0b5c4b24cc6d63594f0f467349b13ea553980
directory, or full name to template files. Now you do:
$ pkgfs.sh install perl-5.10.0
Removed the item from TODO, which was suggested by milosn@freenode.
--HG--
extra : convert_revision : 55e41b27a940ed7d67ade5c185cbbfeb4d82c20a
than use the included one.
While here, fix a bug in dependency handling when A package depends
B and B depends on C, C was installed two times because it was in
the dependency chain two times.
--HG--
extra : convert_revision : 379e161560cebd650a4f7e9d0f1b99f504317bbe
The code looks at db(1) btree files stored in PKGFS_DEPSDIR to know
what dependencies are required for X package, and walks the dependency
chain every time that X package contains a deps .db file.
Every time a package is stowned, the pkg is registered into
PKGFS_DESTDIR/.pkgfs-registered-pkgs.db, and removed when it's unstowned.
--HG--
extra : convert_revision : b5222a890dd41b96dc72ee3e90bb72a282fe0841