MacPorts portfile for GNUmed

depends_lib-append port: pre-configure { if {![file exists ui_error "${name} cannot be installed because MySQL? was not installed with the libmysqld embedded server. return -code error "incompatible MySQL? installation" configure.env default_variants-append +debug post-destroot # Place bundle icons in correct location system "mv system "rm -rf http://trac.macports.org/browser/trunk/dports/kde/amarok-devel/Portfile
  • build.args PREFIX=${prefix} destroot.args PREFIX=${destroot}${prefix} destroot.keepdirs ${destroot}${prefix}/etc/cron.daily \ post-destroot # Create startup rc script (if non-Darwin) if {![variant_isset darwin]} { xinstall -d -m 0755 xinstall -m 755 -c reinplace "s|__PREFIX|${prefix}|g" \ ${destroot}${prefix}/etc/rc.d/anacron.sh post-activate If no anacrontab already installed, copy sample file if {![file exists ${prefix}/etc/anacrontab]} xinstall -m 0644 startupitem.create http://trac.macports.org/browser/trunk/dports/sysutils/anacron/Portfile
  • # Both apache and apache2 want to install dbmmanage.1 and other manpages.
28 conflicts apache2 http://trac.macports.org/browser/trunk/dports/www/apache/Portfile

# -*- 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: PortFile.txt,v 1.10 2010/01/14 09:58:47 JamesBusser Exp $

# note this is an unfinished and untested try at a portfile for GNUmed
# when copied from its wiki origin, this needs resaving as filename:
#    Portfile (no extension)
#
# Copyright 2009 James Busser interchange.ubc.ca:jbusser
# 
# This file is part of GNUmed.
# 
# GNUmed is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 2 of the License, or (at your
# GNUmed) any later version.
# 
# GNUmed is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
# 
# You should have received a copy of the GNU General Public License
# along with GNUmed. If not, see http://www.gnu.org/licenses/.

PortSystem          1.0

name                gnumed-client
version             0.5.0
categories          office
maintainers         openmaintainer
description         medical practice management - Client
long_description    This is the GNUmed Electronic Medical Record. Its \
                    purpose is to enable doctors to keep a medically \
                    sound record on their patients' health. Currently \
                    it is not fully featured. The features provided \
                    are, however, tested, in use, and considered \
                    stable. This package does NOT yet provide \
                    functionality for billing and stock keeping. While \
                    the GNUmed team has taken the utmost care to make \
                    sure the medical records are safe at all times you \
                    still need to make sure you are taking appropriate \
                    steps to backup the medical data to a safe place \
                    at appropriate intervals. Do test your backup and \
                    disaster recovery procedures, too ! Protect your \
                    data! GNUmed itself comes without any warranty \
                    whatsoever. You have been warned. \
homepage            http://gnumed.org
platforms           darwin
master_sites        http://www.gnumed.de/downloads/client/0.5/
distname            gnumed-client.${version}
checksums           http://www.gnumed.de/downloads/client/0.5/GNUmed-client.0.5.0.tgz \
                    md5 5b509627dee53178872ca90c2b751b67 \
                    sha1 c6e4dc22e527501c1f8a0fa5008f948051450a1b \
                    rmd160 98d5a997ea49c91b72578cc42f54ce2b148e3a9c

# using -append modifier (on account of python26 in PortGroups)
# must ask whether port:py26-psycopg2 can accept arguments -postgresql82 -postgresql83
depends_lib-append  port:postgresql84 \
                    port:py26-psycopg2 \
                    port:py26-mx-base \
                    port:py26-wxpython

# GNUmed's other dependencies are covered iteratively by:
# py26-psycopg2 depends {python26 openssl postgresqlX}
#      with variants postgresql82 postgresql83 postgresql84
# py26-wxpython depends {python26 wxWidgets}
# ... I just don't know whether pre-installation interacts with any steps above

# Set hardlinks pointing to ${prefix}/var/macports/software to point to ${prefix}
# in particular, on account of GNUmed calling python (and not python2.6)
# ... check which among the following is advisable
# ... I suspect the first, since symlink already residing in /opt/local/bin pointed to Library not var
#    ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 /opt/local/bin/python
#    ln -s /opt/local/var/macports/software/python26/2.6.2_4+darwin/opt/local/bin/python2.6 /opt/local/bin/python

activate {
    ln -s /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 ${prefix}/bin/python
}

# need to research xinstall -m 755 -d as to whether it's correct & applicable
# at the point that we might implement a disk image
# and then uncomment the following or equivalent, as appropriate
#activate {
#    xinstall -m 755 -d ${destroot}/Applications//GNUmed.app/Contents/MacOS
#    ln -s $~/Desktop ${destroot}/Applications/GNUmed.app/Contents/MacOS/GNUmed
#}

# Display a post-installation message to the user.
# apparently in ui_msg line-endings may not need escaping, but in case that's wrong ...

post-activate {
ui_msg "\n
Congratulations! At this point, you may like to connect to the low-bandwidth \
public GNUmed database (userid = password = any-doc) or to configure \
postgreSQL and subsequently bootstrapping your own local GNUmed \
database. 

More information at http://wiki.gnumed.de/bin/view/Gnumed/ConfigurePostgreSQL.
\n"
}
                    
Topic revision: 14 Jan 2010, JamesBusser
 
Download.png
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
Powered by Olark