Created
June 25, 2014 11:02
-
-
Save steenzout/d3178695126c23f35724 to your computer and use it in GitHub Desktop.
Portfile template for python package hosted at bitbucket.org.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 | |
# $Id$ | |
PortSystem 1.0 | |
PortGroup python 1.0 | |
PortGroup select 1.0 | |
PortGroup bitbucket 1.0 | |
bitbucket.setup <username> <repository_name> <repository_tag> | |
set real_name <package_name> | |
name py-<package_name> | |
version <version> | |
maintainers <email domain>:<email account> | |
platforms darwin | |
supported_archs noarch | |
license <license> | |
description <description> | |
long_description <long description> | |
homepage https://bitbucket.org/<username>/<repository_name>/ | |
checksums sha256 <checksum_sha256> \ | |
rmd160 <checksum_rmd160> | |
python.versions <python_version1> <...> <python_versionN> | |
if {${name} ne ${subport}} { | |
depends_lib-append port:${real_name}_select | |
port:py${python.version}-<dependency> | |
livecheck.type none | |
select.group ${real_name} | |
select.file ${filespath}/<command>${python.version} | |
notes " | |
To make the Python ${python.branch} version of ${real_name} the one that is run\ | |
when you execute the commands without a version suffix, e.g. '<command>', run: | |
port select --set ${select.group} [file tail ${select.file}] | |
" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment