source: trunk/dports/net/pastebinit/Portfile

Last change on this file was 133432, checked in by khindenburg@…, 2 years ago

pastebinit: add license; change default to a working pastebin (openstack.org) #46794

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 133432 2015-03-01 19:56:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                pastebinit
7version             1.4.1
8revision            1
9maintainers         nomaintainer
10license             GPL-2
11categories          net python
12description         pastebinit is a command-line tool to send data to a "pastebin"
13long_description    ${description}: \
14                    a web site which allows its users to upload snippets of text for public viewing.
15
16platforms           darwin
17
18homepage            http://www.stgraber.org/category/pastebinit
19master_sites        http://launchpad.net/pastebinit/trunk/${version}/+download/
20
21checksums           rmd160  ccaf001d5084116e6b70accfffc5239d20ef0117 \
22                    sha256  39e3dcb98d2aa9d65f86c648c375ca75fa312fc773e568963e9aefffea0c9bf7
23
24patchfiles          patch-default.diff
25
26use_configure       no
27
28set sharedir        ${prefix}/share/${name}/
29set localedir       ${prefix}/share/locale/
30
31depends_lib-append  port:py27-configobj
32
33post-patch {
34    # Fix paths
35    reinplace "s|^#!/usr/bin/python3|#!${prefix}/bin/python2.7|" ${worksrcpath}/pastebinit
36    reinplace "s|/etc/pastebin.d|${prefix}/etc/pastebin.d|" ${worksrcpath}/pastebinit
37}
38
39build {
40    system "cd ${worksrcpath}/po && make"
41}
42
43destroot {
44    xinstall -m 755 ${worksrcpath}/pastebinit ${destroot}${prefix}/bin
45    file copy ${worksrcpath}/pastebin.d ${destroot}${prefix}/etc/pastebin.d
46
47    # Localization
48    xinstall -m 755 -d ${destroot}${localedir}
49    foreach f  [glob ${worksrcpath}/po/mo/*] {
50        file copy ${f} ${destroot}${localedir}
51    }
52
53    # Example config
54    xinstall -m 755 -d ${destroot}${sharedir}
55    foreach f {pastebinit.xml COPYING} {
56        file copy ${worksrcpath}/${f} ${destroot}${sharedir}
57    }
58}
59
60livecheck.type      regex
61livecheck.url       http://launchpad.net/pastebinit
62livecheck.regex     Latest version is (.*)
Note: See TracBrowser for help on using the repository browser.