Revision: 132574 https://trac.macports.org/changeset/132574 Author: petr@macports.org Date: 2015-02-04 16:32:59 -0800 (Wed, 04 Feb 2015) Log Message: ----------- py-tweepy: cleanup and use PyPI pattern, update homepage, fix livecheck Modified Paths: -------------- trunk/dports/python/py-tweepy/Portfile Modified: trunk/dports/python/py-tweepy/Portfile =================================================================== --- trunk/dports/python/py-tweepy/Portfile 2015-02-04 23:58:17 UTC (rev 132573) +++ trunk/dports/python/py-tweepy/Portfile 2015-02-05 00:32:59 UTC (rev 132574) @@ -3,39 +3,38 @@ PortSystem 1.0 PortGroup python 1.0 -set pymodname tweepy -name py-${pymodname} + +set _name tweepy +set _n [string index ${_name} 0] + +name py-${_name} version 1.12 -revision 0 categories-append devel net +platforms darwin +supported_archs noarch license MIT maintainers nomaintainer + description A python library for the Twitter API. long_description \ ${description} OAuth, complete coverage, streaming API -platforms darwin -supported_archs noarch +homepage http://www.tweepy.org/ +master_sites https://pypi.python.org/packages/source/${_n}/${_name}/ +distname ${_name}-${version} -homepage http://${pymodname}.github.com/ -master_sites http://pypi.python.org/packages/source/t/${pymodname}/ -distname ${pymodname}-${version} - checksums md5 ff802f974e445ddc232a990324451179 \ sha1 1a67c9742fa72c8fa72d27a6d831852b539b7cfa \ rmd160 b834cc08a8abd1427407553271bc2b6ca588e687 python.versions 26 27 -python.default_version 27 if {${name} ne ${subport}} { depends_build port:py${python.version}-setuptools - post-destroot { - xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} - #xinstall -m 644 -W ${worksrcpath} README ${destroot}${prefix}/share/doc/${subport} - } -} -livecheck.type regex -livecheck.url [lindex ${master_sites} 0] -livecheck.regex ${pymodname}-(\[.\\d\]+)\\.tar\\.gz + livecheck.type none +} else { + livecheck.type regex + livecheck.url https://pypi.python.org/pypi/${_name}/json + livecheck.regex "\"${_name}-(\[.\\d\]+)\\.tar\\.gz\"" +}