summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-06-17Drop popt usage and remove unused popt sourcesold-glib2Dan Nicholson12-1607/+2
With the conversion to GOption and g_shell_parse_argv, pkg-config has no remaining usage of popt. Stop linking to libpopt and removed the bundled sources.
2010-06-17Convert to GOption for command line option parsingDan Nicholson1-110/+109
Use glib's GOption instead of popt for command line option handling. The APIs and output are very similar. A couple minor differences are: * The callback for handling --define-variable is associated only with that option where popt was just leaving the argument and then it was handled in a generic callback. * Remaining arguments after option parsing are in argc/argv while they are collected through poptGetArg with popt. * GOption does not provide the short --usage summary.
2010-06-17Use glib to parse argv strings instead of poptDan Nicholson2-39/+24
Glib's g_shell_parse_argv offers basically a 1:1 replacement for poptParseArgvString except that you have to free all the elements of the array explicitly.
2010-06-17Remove glib-1.2 sourcesDan Nicholson18-4176/+0
No reason to keep the glib-1.2 sources and patches with the glib2 snapshot.
2010-06-17Use bundled glib-2 instead of glib-1.2Dan Nicholson6-29/+7
glib-1.2 is entirely dead, and most people have moved on to using glib-2 from their glib-2 for pkg-config. This converts the bundled glib to the same and will allow glib-2 APIs to be used. The top level autogen.sh is running recursively through glib. If this becomes an issue, we can switch autoreconf to --no-recursive and then descend to glib2 and run its autogen.sh script.
2010-06-17glib2: Save patches to be replayed on snapshotsDan Nicholson7-0/+841
These are the patches that get us from base glib to just what we need for pkg-config. They should be replayed any time the glib snapshot is updated.
2010-06-17glib2: Don't build GRegex or distribute pcreDan Nicholson2-104/+2
In order to avoid the bundled pcre in our bundled glib, just remove and disable the GRegex API. We don't currently need this in pkg-config anyway.
2010-06-17glib2: don't install anything from the bundled libraryDan Nicholson4-57/+9
All we want is the libglib.la convenience library. The -version-info is removed since it causes warnings.
2010-06-17glib2: Build only glibDan Nicholson4-67/+5
We only need the base library for pkg-config.
2010-06-17glib2: Don't build or distribute the testsDan Nicholson3-9/+3
The point of the bundled library is to use it, not to do regression tests on it.
2010-06-17glib2: Prevent translations from being installedDan Nicholson3-34/+2
pkg-config isn't translated, so we don't need the bundled library to be tranlated, either. The glib gettext m4 macros need to be hacked up a bit to keep the po/ directory from being distributed.
2010-06-17glib2: Prevent docs from being created or distributedDan Nicholson3-49/+2
We don't need the glib documentation when it's being used bundled. This allows gtk-doc and xsltproc to be avoided.
2010-06-17glib2: Don't ignore tracked filesDan Nicholson3-3/+6
The .gitignore files needed to be a little more explicit to not ignore tracked files.
2010-06-17Bundle snapshot of glib-2.0Dan Nicholson297-0/+209472
Add a snapshot of the current stable version of glib, glib-2.24.1. Since we only need the glib library, a lot of files are removed. See glib2-patches/README for details.
2010-06-17Add a script to take a snapshot of glib-2.0Dan Nicholson2-0/+57
Grab a snapshot of a tag from a local glib checkout.
2010-06-17Force generation of libtool script so it can be used reliablyDan Nicholson2-0/+3
We want to use the libtool script to determine if indirect dependencies should be listed. LT_OUTPUT forces the script to be created immediately so that the test can be run reliably. This is borrowed from glib's configure.in.
2010-06-16Add test to exercise broken command option handlingDan Nicholson2-1/+35
The ancient bundled popt mishandles some cases of option parsing. http://lists.freedesktop.org/archives/pkg-config/2010-March/000508.html Add a test program to exercise it. This should encourage people to use an external popt until we have a better fix.
2010-06-15Build pkg-config before descending to check directoryDan Nicholson1-2/+2
To ensure that pkg-config has been built and updated before running the test suite, complete the top directory before descending to the check directory.
2010-06-09Greatly simplify autogen.sh and fix configure skippingDan Nicholson1-75/+6
There is really no reason to manually vet and run all the autotools. That's what autoreconf is for. It has the added bonus that it will descend to the glib subdirectory and rebuild the autotools there. The handling of configure is also fixed as the previous --no-configure code was completely broken. This is basically the xorg autogen.sh, so we can be pretty confident it'll work as advertised.
2010-05-28Bump version number to 0.25pkg-config-0.25Tollef Fog Heen1-1/+1
2010-05-28Document 0.25 changesTollef Fog Heen1-0/+13
2010-05-28Make sure to distribute the blank fields .pc file tooTollef Fog Heen1-1/+2
2010-05-27Document pc_path a bitTollef Fog Heen1-1/+10
2010-05-27Add test case for empty fieldsTollef Fog Heen3-0/+18
Make sure we don't run into the bug fixed by 6a27c57 again.
2010-05-27Handle empty valued fields with newer external poptDan Nicholson1-21/+31
The bundled popt handled the case of Cflags or Libs with no value, but newer popt linked through --with-installed-popt chokes parsing it into a vector. This is arguably a popt bug in poptParseArgvString, but I guess they expect you not to ask it to split an empty string.
2010-05-27Fix up test framework to better report errors when pkg-config exits non-zeroTollef Fog Heen1-1/+3
2010-05-27Allow : and = unescaped in output tooTollef Fog Heen3-5/+6
2010-05-27Add COPYING files to give general licensing termsDan Nicholson4-1/+363
In order to avoid having the COPYING file from automake included in the distribution, add a copy of the GPLv2 for pkg-config. This matches the source files, which all specify GPLv2+. The COPYING file from upstream popt has also been added for the bundled popt sources.
2010-05-24Fix typo in man pageTollef Fog Heen1-1/+1
2010-05-23Distcheck fixespkg-config-0.24Tollef Fog Heen5-7/+7
Various small fixes to make distcheck pass
2010-05-23Bump version number in configure.acTollef Fog Heen1-1/+1
2010-05-23Write NEWS for 0.24Tollef Fog Heen1-0/+21
2010-05-23Make it possible to escape paths containing special shell charactersTollef Fog Heen4-51/+78
Allow paths and other components to contain shell metacharacters, but escape them on output. White space has to be escaped in the input files using quotes or backslashes Freedesktop.org #3571
2010-05-10Add --print-provides and --print-requires-private to the manual pageJohannes Schmid1-0/+10
2010-05-10Add --print-provides and --print-requires(-private) optionsJohannes Schmid1-1/+79
These are useful for applications that need to query the pkg-config database, e.g. managers or IDEs.
2010-05-09Quote the deplibs_check method a bit harderDaniel Richard G1-1/+1
This makes compiling on HP-UX work.
2010-05-09Optionally use an external popt libraryDan Nicholson2-1/+24
The one imported into pkg-config has seen very little maintenance, so let's give users the option to use the upstream version. The default is to use the included sources, but it can search for the system library using --with-installed-popt.
2010-05-09Move popt to subdirectory and make a convenience library of itDan Nicholson11-12/+17
This keeps a cleaner separation of the pkg-config sources and the imported popt sources.
2010-05-09Fix formatting typo in pkg-config.1Kirill Smelkov1-1/+1
Without <dot>TP, "Requires" and "Requires.private" are rendered as one paragraph.
2010-05-09Add listing of variablesJorn Amundsen2-1/+35
Fixes Freedesktop #133
2010-05-09Handle -idirafter speciallyTollef Fog Heen4-9/+38
Don't split -idirafter from its argument. Fixes Freedesktop #23480
2010-05-09Fix up man pageTollef Fog Heen1-41/+55
Make sure to avoid \ macros at the start of lines, as that makes some man implementations unhappy. Fixes freedesktop #17914
2010-05-08Make it clearer which directory PKG_CONFIG_LIBDIR refers toTollef Fog Heen1-1/+1
Fixes Freedesktop.org #26879
2010-05-08Use $() rather than ``Tollef Fog Heen1-1/+1
Fixes Freedesktop.org #27376
2010-05-08Document --list-all option in man pageDan Nicholson1-1/+4
Present in the --help output, but not the manual...
2010-05-08Include an introductory guide to pkg-configDan Nicholson2-0/+422
The pkg-config(1) manual includes a lot of details behind pkg-config, but not the background and usage patterns. This guide tries to provide users and developers with a starting point for pkg-config.
2010-05-08Add .gitignore to exclude generated files from trackingDan Nicholson1-0/+29
This was basically generated with "git ls-files -o --directory".
2010-05-08Mark Changelog as no longer kept up to date.Tollef Fog Heen1-0/+6
2010-05-08Update rpmvercmp with bugfixes from RPMTollef Fog Heen1-1/+5
Grab two minor bugfixes from RPM's rpmvercmp.
2009-12-06Clean up sysroot support a little bitTollef Fog Heen1-26/+15
This should fix bug #16905 properly.