source: trunk/dports/science/htcondor/Portfile @ 105542

Last change on this file since 105542 was 105542, checked in by aronnax@…, 7 years ago

htcondor: declare latex2html's license as not in conflict

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 105542 2013-04-24 15:20:12Z aronnax@macports.org $
3
4PortSystem              1.0
5PortGroup               github 1.0
6PortGroup               cmake 1.0
7PortGroup               active_variants 1.1
8
9github.setup            htcondor htcondor 7_8_8 V
10version                 [strsed ${github.version} g/_/\./]
11maintainers             aronnax
12
13categories              science parallel net
14license                 apache
15platforms               darwin
16description \
17  specialized workload management system for compute-intensive jobs
18long_description \
19  HTCondor is a specialized workload management system for compute-intensive \
20  jobs. Like other full-featured batch systems, HTCondor provides a job \
21  queueing mechanism, scheduling policy, priority scheme, resource monitoring, \
22  and resource management. Users submit their serial or parallel jobs to \
23  HTCondor, HTCondor places them into a queue, chooses when and where to run \
24  the jobs based upon a policy, carefully monitors their progress, and \
25  ultimately informs the user upon completion.
26homepage                http://research.cs.wisc.edu/htcondor
27
28default_variants        +personal
29
30variant personal \
31  description "configure your computer as a one-node personal Condor pool" {
32
33    add_users           condor group=condor
34
35    startupitem.create  yes
36    startupitem.name    ${name}
37    startupitem.start   "${prefix}/sbin/condor_master -f"
38    startupitem.stop    "${prefix}/sbin/condor_off -all -master"
39}
40
41checksums               rmd160  05bf7ab149aef9590776efe3f48c83a7038f346d \
42                        sha256  2077dcc0e74d84f45793b50dde84854519931649fad9c6a33550a5fa715a6f21
43
44depends_build-append    port:latex2html
45
46depends_lib-append      port:boost \
47                        port:expat \
48                        port:kerberos5 \
49                        port:openssl \
50                        port:pcre
51
52license_noconflict      latex2html
53
54# FIXME: For some reason, Condor uses install_name_tool to have dynamic links
55# point to @executable_path/../lib/condor/libexpat.1.dylib, etc, instead of
56# @executable_path/../lib/libexpat.1.dylib, etc. Why?
57patchfiles              patch-src-condor_scripts-macosx_rewrite_libs.diff \
58                        patch-src-condor_utils-condor_config.cpp.diff
59
60post-patch {
61    reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/src/condor_utils/condor_config.cpp
62}
63
64compiler.blacklist      clang
65
66# FIXME: Globus support is disabled because Globus is not available in MacPorts.
67configure.args-append   -DWITH_GLOBUS:BOOL="0"
68
69post-build {
70    system -W ${worksrcpath}/doc "make just-man-pages"
71}
72
73destroot.keepdirs       ${destroot}${prefix}/etc/condor/config.d \
74                        ${destroot}${prefix}/var/lib/condor/execute \
75                        ${destroot}${prefix}/var/lib/condor/spool \
76                        ${destroot}${prefix}/var/log/condor
77
78# Condor installs some documentation into ${prefix}. Move them into
79# ${prefix}/share/doc/${name}.
80post-destroot {
81    eval xinstall [glob ${worksrcpath}/doc/man/man1/*] \
82        ${destroot}${prefix}/share/man/man1
83
84    file delete ${destroot}${prefix}/sbin/condor_configure
85    file delete ${destroot}${prefix}/sbin/condor_install
86    file mkdir ${destroot}${prefix}/share/doc/${name}
87    move \
88      ${destroot}${prefix}/DOC \
89      ${destroot}${prefix}/examples \
90      ${destroot}${prefix}/INSTALL \
91      ${destroot}${prefix}/LICENSE-2.0.txt \
92      ${destroot}${prefix}/README \
93      ${destroot}${prefix}/share/doc/${name}
94
95    if {[variant_isset personal]} {
96        xinstall -d ${destroot}${prefix}/etc/condor/config.d
97        xinstall ${filespath}/condor_config ${destroot}${prefix}/etc/condor
98        reinplace "s|@prefix@|${prefix}|g" ${destroot}${prefix}/etc/condor/condor_config
99        xinstall ${filespath}/condor_config.local ${destroot}${prefix}/etc/condor
100
101        xinstall -d ${destroot}${prefix}/var/lib
102        xinstall -d -o condor -g condor ${destroot}${prefix}/var/lib/condor/execute
103        xinstall -d -o condor -g condor ${destroot}${prefix}/var/lib/condor/spool
104        xinstall -d ${destroot}${prefix}/var/log
105        xinstall -d -o condor -g condor ${destroot}${prefix}/var/log/condor
106    }
107}
108
109# Override default GitHub livecheck because the HTCondor git repository has
110# thousands of tags, and GitHub has to paginate the tags.
111livecheck.type          regexm
112livecheck.url           ${homepage}/downloads/
113livecheck.version       ${version}
114livecheck.regex         {Current Stable Release</td>\s*<td [^>]*>([0-9]+(\.[0-9]+)+)}
Note: See TracBrowser for help on using the repository browser.