Hello.

According to "Use of the 'Requires.private' field in pkg-config files"
thread (http://tinyurl.com/e-devel-req-private) it would be nice to have
Requires.private fields in E .pc files instead of Requires, if
pkg-config supports them.

Attached is the RFC patch (eet only) which adds check for pkg-version
and emits either Requires or Requires.private in generated .pc files.

-- 
  http://fossarchy.blogspot.com/

Attachment: pgpEHNBSofK1U.pgp
Description: PGP signature

>From 53f0b32bd7d8223f2be1650c9f2f2bef02c40ae5 Mon Sep 17 00:00:00 2001
From: Mikhail Gusarov <dotted...@dottedmag.net>
Date: Thu, 3 Sep 2009 05:50:26 +0700
Subject: [PATCH] Turn pkg-config's Requires into Requires.private if supported

---
 configure.ac |    8 ++++++++
 eet.pc.in    |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index a513148..d901999 100644
--- a/configure.ac
+++ b/configure.ac
@@ -150,6 +150,14 @@ AC_PROG_CC
 
 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
 
+### Check whether pkg-config supports Requires.private
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then
+   pkgconfig_requires_private=Requires.private
+else
+   pkgconfig_requires_private=Requires
+fi
+AC_SUBST(pkgconfig_requires_private)
 
 ### Checks for libraries
 
diff --git a/eet.pc.in b/eet.pc.in
index 2acd9e1..df0d14d 100644
--- a/eet.pc.in
+++ b/eet.pc.in
@@ -5,7 +5,7 @@ included...@includedir@
 
 Name: eet
 Description: Library for speedy data storage, retrieval, and compression
-Requires: @requirement_eet@
+...@pkgconfig_requires_private@: @requirement_eet@
 Version: @VERSION@
 Libs: -L${libdir} -leet
 Libs.private: @GNUTLS_LIBS@ @OPENSSL_LIBS@ @EINA_LIBS@ @EVIL_LIBS@ @EET_LIBS@ @fnmatch_libs@ -ljpeg -lz -lm
-- 
1.6.3.3

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to