public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] pango: Generate modules cache on install and update if not present.
Date: Sat, 30 May 2015 20:09:13 +0200	[thread overview]
Message-ID: <1433009353-1665-1-git-send-email-stefan.schantl@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]

Now the modules cache automatically will be created on install or after
pango has been updated.

The module cache is required for any usage of pango.

Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 pango/pango.nm | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/pango/pango.nm b/pango/pango.nm
index cdb457d..5d83c94 100644
--- a/pango/pango.nm
+++ b/pango/pango.nm
@@ -7,7 +7,9 @@ name       = pango
 version    = %{ver_major}.%{ver_minor}
 ver_major  = 1.36
 ver_minor  = 8
-release    = 1
+release    = 2
+
+bin_version = 1.8.0
 
 groups     = System/Libraries
 url        = http://www.pango.org/
@@ -39,10 +41,24 @@ build
 	configure_options += \
 		--enable-introspection=yes
 
+
+	install_cmds
+		touch %{BUILDROOT}%{libdir}/pango/%{bin_version}/modules.cache
+	end
 end
 
 packages
 	package %{name}
+		script postin
+			/usr/bin/pango-querymodules --update-cache || :
+		end
+
+		script postup
+			if [ ! -e "%{libdir}/pango/%{bin_version}/modules.cache" ]; then
+				/usr/bin/pango-querymodules --update-cache || :
+			fi
+		end
+	end
 
 	package %{name}-devel
 		template DEVEL
-- 
2.1.0


                 reply	other threads:[~2015-05-30 18:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1433009353-1665-1-git-send-email-stefan.schantl@ipfire.org \
    --to=stefan.schantl@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox