source: trunk/dports/print/libpaper/Portfile

Last change on this file was 149987, checked in by raimue@…, 13 months ago

print/libpaper:
Update to version 1.1.24.4, upstream version 1.1.24+nmu4, following version conversion scheme of FreeBSD ports.
Remove patch file as Makefile syntax seems correct.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 149987 2016-07-07 16:02:53Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            libpaper
7set mainversion 1.1.24
8set nmuversion  4
9set realversion ${mainversion}+nmu${nmuversion}
10version         ${mainversion}.${nmuversion}
11categories      print
12license         GPL-2
13maintainers     nomaintainer
14platforms       darwin
15description     A library providing routines for paper size management
16long_description \
17                The paper library and accompanying files are intended \
18                to provide a simple way for applications to take \
19                actions based on a system- or user-specified paper size.
20
21homepage        http://packages.qa.debian.org/libp/libpaper.html
22master_sites    debian:libp/${name}/
23
24distname        ${name}_${realversion}
25worksrcdir      ${name}-${realversion}
26
27checksums       rmd160  96a6e20ded0fd223706415d4c0aa8b8368833c14 \
28                sha256  2491fce3f590d922d2d3070555df4425921b89c76a18e1c62e36336d6657526a
29
30post-patch {
31    set fd [open [file join ${worksrcpath}/lib paperspecs] a 0644]
32    # additional paper sizes
33    foreach {n x y} {jisb0 2920 4127
34                     jisb1 2064 2920
35                     jisb2 1460 2064
36                     jisb3 1032 1460
37                     jisb4  729 1032
38                     jisb5  516  729
39                     jisb6  363  516} {
40        puts ${fd} "${n} ${x} ${y}"
41    }
42    close ${fd}
43}
44
45configure.args  --mandir=${prefix}/share/man    \
46                --sysconfdir=${prefix}/etc
47
48livecheck.type      regex
49livecheck.version   ${realversion}
50livecheck.regex     {"stable">([^<]+)}
Note: See TracBrowser for help on using the repository browser.