Ticket #30232: Portfile

File Portfile, 1.4 KB (added by kev@…, 13 years ago)

Add other python BeautifulSoup libraries as variants instead of requirements.

Line 
1# -*- 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
2# $Id$
3
4PortSystem 1.0
5
6name                    euler
7version                 1.1
8categories              sysutils
9platforms               darwin
10license                 GPL
11maintainers             inburke.com:kev
12
13description             Command line tool for Project Euler
14long_description        A tool to submit Project Euler problems
15homepage                http://bitbucket.org/kevinburke/euler
16master_sites            https://bitbucket.org/kevinburke/euler/downloads
17
18use_configure           no
19
20checksums               md5     2040fd7d1b56316a21317b5ff1078479 \
21                        sha1    b16a614c130cb2fb31edfff06d6b0f59f8b9920b \
22                        rmd160  e686a39893c14a4f7b3da6ed160f23dff9eaa9ea
23
24depends_lib             port:jp2a \
25                        port:ImageMagick \
26                        port:py27-beautifulsoup
27
28pre-destroot {
29    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile
30    reinplace "s|@@WORKSRCPATH@@|${worksrcpath}|g" ${worksrcpath}/Makefile
31}
32
33variant python25 conflicts python26 description {For use with python2.5} {
34    depends_lib-delete port:py27-beautifulsoup
35    depends_lib-append port:py25-beautifulsoup
36}
37
38variant python26 conflicts python25 description {For use with python2.6} {
39    depends_lib-delete port:py27-beautifulsoup
40    depends_lib-append port:py26-beautifulsoup
41}