From c75a54293871fc84978f2c6755f4b06253c6982b Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Sun, 29 Jul 2012 09:56:03 +0000 Subject: - import patches from upstream - changes: * add support for --list-all * --version now shows pkg-config compatibility version (no need to modify anymore buggy configures that do check for --version instead of --modversion pkg-conf) * new --about to show the version of pkgconf Obtained from: pkgconf git repository --- devel/pkgconf/files/patch-pkg.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 devel/pkgconf/files/patch-pkg.h (limited to 'devel/pkgconf/files/patch-pkg.h') diff --git a/devel/pkgconf/files/patch-pkg.h b/devel/pkgconf/files/patch-pkg.h new file mode 100644 index 000000000000..1c89073eaf86 --- /dev/null +++ b/devel/pkgconf/files/patch-pkg.h @@ -0,0 +1,17 @@ +--- ./pkg.h.orig 2012-07-26 04:13:43.000000000 +0200 ++++ ./pkg.h 2012-07-29 11:31:53.000000000 +0200 +@@ -114,11 +114,14 @@ + #define PKG_ERRF_PACKAGE_VER_MISMATCH 0x2 + #define PKG_ERRF_PACKAGE_CONFLICT 0x4 + ++typedef void (*pkg_iteration_func_t)(const pkg_t *pkg); + typedef void (*pkg_traverse_func_t)(pkg_t *pkg, void *data, unsigned int flags); + + /* pkg.c */ + void pkg_free(pkg_t *pkg); + pkg_t *pkg_find(const char *name, unsigned int flags); ++void pkg_scan(const char *search_path, pkg_iteration_func_t func); ++void pkg_scan_all(pkg_iteration_func_t func); + unsigned int pkg_traverse(pkg_t *root, pkg_traverse_func_t func, void *data, int maxdepth, unsigned int flags); + unsigned int pkg_verify_graph(pkg_t *root, int depth, unsigned int flags); + int pkg_compare_version(const char *a, const char *b); -- cgit v1.2.3