mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
64 lines
1.9 KiB
Plaintext
64 lines
1.9 KiB
Plaintext
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
|
|
name pastebinit
|
|
version 1.5
|
|
maintainers nomaintainer
|
|
license GPL-2
|
|
categories net python
|
|
description pastebinit is a command-line tool to send data to a "pastebin"
|
|
long_description ${description}: \
|
|
a web site which allows its users to upload snippets of text for public viewing.
|
|
|
|
platforms darwin
|
|
|
|
homepage http://www.stgraber.org/category/pastebinit
|
|
master_sites http://launchpad.net/pastebinit/trunk/${version}/+download/
|
|
|
|
checksums rmd160 90803045b9eb56d234b479eda29970d9a4ba9891 \
|
|
sha256 0d931dddb3744ed38aa2d319dd2d8a2f38a391011ff99db68ce7c83ab8f5b62f
|
|
|
|
patchfiles patch-default.diff
|
|
|
|
use_configure no
|
|
|
|
set sharedir ${prefix}/share/${name}/
|
|
set localedir ${prefix}/share/locale/
|
|
|
|
depends_build-append \
|
|
port:gettext
|
|
|
|
depends_lib-append port:py27-configobj
|
|
|
|
post-patch {
|
|
# Fix paths
|
|
reinplace "s|^#!/usr/bin/python3|#!${prefix}/bin/python2.7|" ${worksrcpath}/pastebinit
|
|
reinplace "s|/etc/pastebin.d|${prefix}/etc/pastebin.d|" ${worksrcpath}/pastebinit
|
|
}
|
|
|
|
build {
|
|
system "cd ${worksrcpath}/po && make"
|
|
}
|
|
|
|
destroot {
|
|
xinstall -m 755 ${worksrcpath}/pastebinit ${destroot}${prefix}/bin
|
|
file copy ${worksrcpath}/pastebin.d ${destroot}${prefix}/etc/pastebin.d
|
|
|
|
# Localization
|
|
xinstall -m 755 -d ${destroot}${localedir}
|
|
foreach f [glob ${worksrcpath}/po/mo/*] {
|
|
file copy ${f} ${destroot}${localedir}
|
|
}
|
|
|
|
# Example config
|
|
xinstall -m 755 -d ${destroot}${sharedir}
|
|
foreach f {pastebinit.xml COPYING} {
|
|
file copy ${worksrcpath}/${f} ${destroot}${sharedir}
|
|
}
|
|
}
|
|
|
|
livecheck.type regex
|
|
livecheck.url http://launchpad.net/pastebinit
|
|
livecheck.regex Latest version is (.*)
|