Commit graph

25 commits

Author SHA1 Message Date
Juan RP cf00486d45 replace-interpreter: fix chmod.
--HG--
extra : convert_revision : 2ef1a74fa2ddbf99cb4f7113abd3e23c31bdb910
2008-10-16 00:24:17 +02:00
Juan RP 0abdec75e6 Added desktop-file-utils-0.15 template and its associated helper.
--HG--
extra : convert_revision : 080e2c1e9930a480e88af722f91605a8a69c66cc
2008-10-15 02:50:10 +02:00
Juan RP 99dff83ee4 Added a new helper to register DTDs and XML/SGML catalogs via xmlcatmgr.
--HG--
extra : convert_revision : f88895c26edc3d030b53540136415fe1e66ce90b
2008-10-15 01:59:41 +02:00
Juan RP dcaa308afe font-util: use replace-interpreter.sh and remove perl-replace-path.sh
helper which isn't used now.

--HG--
extra : convert_revision : b1291d48a5b55e229c37e0374a618ab079eaeb83
2008-10-14 19:44:22 +02:00
Juan RP b9107abc20 replace-interpreter.sh: also set chmod a+x in new created files.
--HG--
extra : convert_revision : 12b704d249814755ee9162cac934410a906cb723
2008-10-14 19:32:17 +02:00
Juan RP b2378e259c Fix replace-interpreter.sh to use doble quotes in sed.
--HG--
extra : convert_revision : 9159fb23ddb11d4980276064f4d7aebad1927ad9
2008-10-14 19:22:05 +02:00
Juan RP e1128e1871 replace-interpreter.sh: fix typo.
--HG--
extra : convert_revision : 56cafcdda4ea65996b9f73d863eb56525d6da75e
2008-10-14 18:26:31 +02:00
Juan RP 15a0e2c005 Added a new helper that replaces wrong shebang paths.
Inspired by replace-interpreter.mk from pkgsrc.

--HG--
extra : convert_revision : 7e7096b97c156ea861d3d782f2af532d1e73f5fd
2008-10-14 18:24:53 +02:00
Juan RP b52d064544 Major changes to support multiple distfiles in templates.
Each template now needs to use $distfiles that accepts the full
URL to download the distfile and old $extract_sufx is now merged
on it, but this must be separated by the '@' character. Example:

distfiles="http://www.foo.org/blah-6.2@.tar.gz
http://www.foo.org/blob-1.0@.tar.bz2"

If distfiles contains multiple files defined, $wrksrc is now
mandatory.

--HG--
extra : convert_revision : 1c3fa35f148af8323ce3cbcf5732104960de6bc4
2008-10-14 07:52:29 +02:00
Juan RP 84d4f6391a Change helper-templates files to mode 644.
--HG--
extra : convert_revision : a156c08bb49d2314e667b86feba5a5a3180e39f2
2008-10-13 07:51:55 +02:00
Juan RP cfa18b4416 Massive renaming, pkgfs is now called xbps.
Also known as "xtraeme's build package system".

--HG--
extra : convert_revision : 119840ceae588fef65d6dcab651f607f54fa0be6
2008-10-13 07:32:05 +02:00
Juan RP b53922a2ec 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
2008-10-12 20:05:52 +02:00
Juan RP 8a0d474c67 Added GIMP 2.6.1 template and other related stuff required.
Another helper was made to be able to build GIMP, which will use the
external gettext-tools package when a template needs it.

--HG--
extra : convert_revision : 80ebdea771b9dec28a1741b5fcae6bd17b50b143
2008-10-11 09:17:47 +02:00
Juan RP 293de9c6ec Added a new template helper to run GNU automake stuff for a pkg.
--HG--
extra : convert_revision : 55608667a6245e3aa5c71b92ff7bfd9f6ca88c2a
2008-10-11 06:14:02 +02:00
Juan RP 6767460858 Added hicolor-icon-theme-0.10 and its acompannion helper.
--HG--
extra : convert_revision : 885f1c2f7759caa86909aed1831522d44b1e159f
2008-10-11 02:03:45 +02:00
Juan RP 259900136c Added shared-mime-info-0.51 template and its related helper.
--HG--
extra : convert_revision : 16763dc3fcd2361fef5ba0560c57a46b45333677
2008-10-10 19:14:25 +02:00
Juan RP 6ade2fe36a Some changes for better use of postinstall_helpers and run_stuff_*.
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
2008-10-06 16:57:36 +02:00
Juan RP 21886c627f Fix unzip's helper to work with last set of changes.
--HG--
extra : convert_revision : 69852888e9293ee0bbbcd8aa380f8dc6a7403e02
2008-10-06 02:51:34 +02:00
Juan RP 725ad53038 Add another helper to replace default perl shebang path with the
one pointing at PKGFS_MASTERDIR.

--HG--
extra : convert_revision : d17d9634efe15636385b52e92f66434a89d1efae
2008-10-04 16:27:56 +02:00
Juan RP e9def74b60 Mega patch to improve how build dependencies are handled and
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
2008-10-04 06:29:49 +02:00
Juan RP 9078783ed1 Added three new helpers to be used by packages requiring GTK+ and
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
2008-10-03 17:19:37 +02:00
Juan RP 902512dd96 Multiple bugfixes and improvements after building gtk+ from scratch.
- 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
2008-10-03 14:32:26 +02:00
Juan RP b1c2d7613a Added support for building packages that use GNU or BSD Makefiles
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
2008-10-03 00:44:43 +02:00
Juan RP 0fdfc94802 Added support for build_style=perl_module. That means that perl modules
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
2008-10-02 01:38:12 +02:00
Juan RP 01799e1e18 Multiple changes to gnu_configure style packages, as well as other
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
2008-09-30 22:48:52 +02:00