Skip to content

Commit

Permalink
New port: py-appdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Feb 8, 2017
1 parent f8a666d commit 2aef534
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
37 changes: 37 additions & 0 deletions python/py-appdirs/Portfile
@@ -0,0 +1,37 @@
# -*- 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

PortSystem 1.0
PortGroup python 1.0

name py-appdirs
version 1.4.0
platforms darwin
supported_archs noarch
maintainers nomaintainer
license MIT

description module that finds where to keep user data

long_description A Python module for determining appropriate \
platform-specific per-user directories for data, \
configuration files, etc.

homepage https://github.com/ActiveState/appdirs
master_sites pypi:a/appdirs
distname ${python.rootname}-${version}

checksums md5 1d17b4c9694ab84794e228f28dc3275b \
rmd160 50000f1b504ed024a976cde1426883b301aa977e \
sha256 8fc245efb4387a4e3e0ac8ebcc704582df7d72ff6a42a53f5600bbb18fdaadc5

python.versions 26 27 33 34 35 36

if {$subport ne $name} {
patchfiles setup.py.patch
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 644 -W ${worksrcpath} CHANGES.rst LICENSE.txt README.rst \
${destroot}${docdir}
}
}
11 changes: 11 additions & 0 deletions python/py-appdirs/files/setup.py.patch
@@ -0,0 +1,11 @@
--- setup.py.orig 2014-08-18 03:27:12.000000000 +1000
+++ setup.py 2017-02-09 08:30:12.000000000 +1100
@@ -2,7 +2,7 @@
import sys
import os
import os.path
-from setuptools import setup
+from distutils.core import setup
import appdirs

tests_require = []

0 comments on commit 2aef534

Please sign in to comment.