Ticket #25779: patch-Portfile

File patch-Portfile, 1.4 KB (added by someuser12, 13 years ago)

Patch to the Portfile of qiv, updating from version 2.0 to 2.2.3

Line 
1--- Portfile.orig       2009-08-07 23:30:33.000000000 +0200
2+++ Portfile    2010-08-16 17:13:03.000000000 +0200
3@@ -3,19 +3,21 @@
4 PortSystem      1.0
5 
6 name         qiv
7-version      2.0
8+version      2.2.3
9 categories   graphics
10 platforms    darwin
11 maintainers  hilaiel.com:lloyd
12 description  A very small and pretty fast gdk/Imlib image viewer
13 long_description A very small and pretty fast gdk/Imlib image viewer \
14                  for X.
15-homepage     http://www.klografx.net/qiv/
16-master_sites http://www.klografx.net/qiv/download/
17-distfiles    ${name}-${version}-src.tgz
18-checksums    md5 165d0c2f264718821f94732196b7f9e1
19+homepage     http://spiegl.de/qiv/
20+master_sites http://spiegl.de/qiv/download/
21+extract.suffix .tgz
22+checksums    md5     f692f665ad429f13c732156351420850 \
23+             sha1    0bf8cc9a7d8bdad6bbe9e6ba970890da902a27c8 \
24+             rmd160  b52168e67e6b8c65c924b4642944aa592f0bb4a0
25 
26-depends_lib  port:imlib
27+depends_lib  port:imlib2 port:gtk2
28 
29 use_configure    no
30 
31@@ -24,3 +26,14 @@
32 post-patch {
33     reinplace "s|@PREFIX@|${prefix}|" ${worksrcpath}/Makefile
34 }
35+
36+variant libmagic description {Enable use of libmagic to identify if a file is an image} {
37+    depends_lib-append port:file
38+    post-patch {
39+        reinplace "s|^#MAGIC = -DHAVE_MAGIC|MAGIC = -DHAVE_MAGIC|" ${worksrcpath}/Makefile
40+    }
41+}
42+
43+livecheck.type regex
44+livecheck.url  ${master_sites}
45+livecheck.regex        ${name}-(\\d+(?:\\.\\d+)*).tgz