Ticket #37536: ngspice-26-Portfile.diff

File ngspice-26-Portfile.diff, 3.0 KB (added by holger.waechtler@…, 10 years ago)

Portfile diff for ngspice-26, incorporating requested changes

  • ports/science/ngspice/Portfile

    old new  
    11# -*- 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: Portfile 99376 2012-11-04 03:31:08Z ryandesign@macports.org $
     2# $Id$
    33
    44PortSystem      1.0
    55
    66name            ngspice
    7 version         24
     7version         26
    88license         BSD
    99categories      science cad
    1010maintainers     nomaintainer
    1111platforms       darwin
    12 description     Circuit simulator based on Spice 3f5
     12description     Circuit simulator based on Spice 3f5, XSpice and others
    1313long_description \
    1414                Ngspice is a mixed-level/mixed-signal circuit simulator. Its \
    1515                code is based on three open source software packages: Spice3f5, \
    long_description \ 
    2020homepage        http://ngspice.sourceforge.net/
    2121master_sites    sourceforge:project/ngspice/ng-spice-rework/${version}
    2222
    23 checksums       rmd160  69363d58ef69724f5ac909dcda278095b12bb8dd \
    24                 sha256  86d2748f6a62db2ed1c4601b24984f6698c88b910bf263ce975467bc6039f065
     23checksums       rmd160  b708ef7af2f6882e04d7bb4985418b4ac0c37a3b \
     24                sha256  51e230c8b720802d93747bc580c0a29d1fb530f3dd06f213b6a700ca9a4d0108
    2525
    2626set docdir      ${prefix}/share/doc/${name}
    2727
    2828if {${name} == ${subport}} {
    29     depends_lib         port:libedit \
    30                         port:xorg-libXaw
     29    depends_lib         port:libedit
    3130   
    32     configure.args      --enable-x \
     31    configure.args      --enable-cider \
    3332                        --enable-xspice \
     33                        --enable-pss \
    3434                        --with-editline \
    35                         --x-includes=${prefix}/include \
    36                         --x-libraries=${prefix}/lib
     35                        --enable-debug=no
    3736   
    3837    post-destroot {
    3938        xinstall -d ${destroot}${docdir}
    subport ngspice-docs { 
    6564    description         PDF manual for ngspice
    6665    long_description    ${description}
    6766   
    68     distname            ${name}${version}-manual.pdf
    69     extract.suffix      .gz
    70    
    71     checksums           rmd160  ec9a55175ca352530565b224032b5bb04f14a51b \
    72                         sha256  dfb87979f285297f1e4c7fdbfc6380cc906f408019cdb39653d8e4411bb94ac4
    73    
     67    distname            ${name}-${version}-manual.pdf
     68    extract.suffix     
    7469    extract.only
     70 
     71    checksums           rmd160  1d708851d5e1a6feb3cf9e4e40396a0215996048 \
     72                        sha256  30b4fde001d012b0350aae3ba64892fb2f315d04f6761b95abd79f4b7c4cd85d
    7573   
    7674    use_configure       no
    77    
     75
    7876    build {}
    7977   
    8078    destroot {
    8179        xinstall -d ${destroot}${docdir}
    82         system "gzcat ${distpath}/${distfiles} > ${destroot}${docdir}/${name}-manual.pdf"
     80        xinstall -m 644 ${distpath}/${distname} ${destroot}${docdir}
    8381    }
    8482}