Changeset 99376


Ignore:
Timestamp:
Nov 4, 2012, 3:31:08 AM (11 years ago)
Author:
ryandesign@…
Message:

ng-spice: rename to ngspice; update to 24 (#36729); fix packaging error due to wrong directory name (#36876); move PDF manual to ngspice-docs subport

Location:
trunk/dports/science/ngspice
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/science/ngspice/Portfile

    r99375 r99376  
    44PortSystem      1.0
    55
    6 name            ng-spice
    7 version         23
    8 revision        1
     6name            ngspice
     7version         24
    98license         BSD
    109categories      science cad
     
    2221master_sites    sourceforge:project/ngspice/ng-spice-rework/${version}
    2322
    24 distname        ngspice-${version}
     23checksums       rmd160  69363d58ef69724f5ac909dcda278095b12bb8dd \
     24                sha256  86d2748f6a62db2ed1c4601b24984f6698c88b910bf263ce975467bc6039f065
    2525
    26 checksums       [suffix ${distname}] \
    27                 md5     bc7faa7348e307145b3bb04ef70a87d2 \
    28                 sha1    65fa23d1168cb3af7651b990344f763c77bf6132 \
    29                 rmd160  34a5bb0a06e67a9ebe21f7abe8067cd8e793ea9e \
    30                 ngspice${version}-manual.pdf.gz \
    31                 md5     7c1766f61034725268fd1ba6817358d1 \
    32                 sha1    ea92e50eb84f973bf0b364e75d74416cf69291ce \
    33                 rmd160  286bfa0dc5b38d0d931cd686d9979c0734a17ea7
     26set docdir      ${prefix}/share/doc/${name}
    3427
    35 worksrcdir      ngspice-${version}
    36 
    37 depends_lib     port:xorg-libXaw
    38 
    39 extract.only    [suffix ${distname}] 
    40 configure.args  --x-includes=${prefix}/include \
    41                 --x-libraries=${prefix}/lib \
    42                 --with-editline=yes \
    43                 --enable-x \
    44                 --enable-xspice
    45 
    46 post-destroot {
    47     file rename ${destroot}${prefix}/share/ngspice ${destroot}${prefix}/share/${name}
     28if {${name} == ${subport}} {
     29    depends_lib         port:libedit \
     30                        port:xorg-libXaw
     31   
     32    configure.args      --enable-x \
     33                        --enable-xspice \
     34                        --with-editline \
     35                        --x-includes=${prefix}/include \
     36                        --x-libraries=${prefix}/lib
     37   
     38    post-destroot {
     39        xinstall -d ${destroot}${docdir}
     40        xinstall -m 644 -W ${worksrcpath} \
     41            ANALYSES \
     42            AUTHORS \
     43            BUGS \
     44            COPYING \
     45            ChangeLog \
     46            DEVICES \
     47            FAQ \
     48            NEWS \
     49            README \
     50            Stuarts_Poly_Notes \
     51            ${destroot}${docdir}
     52    }
     53   
     54    variant manual description {Legacy compatibility variant} {
     55        depends_run-append  port:ngspice-docs
     56    }
     57   
     58    livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
     59} else {
     60    livecheck.type      none
    4861}
    4962
    50 variant manual description {Includes manual in PDF format} {
    51     distfiles-append ngspice${version}-manual.pdf.gz
    52     post-destroot {
    53         xinstall -d ${destroot}${prefix}/share/doc/${name}
    54         xinstall -m 644 ${distpath}/ngspice${version}-manual.pdf.gz ${destroot}${prefix}/share/doc/${name}
    55         system -W ${destroot}${prefix}/share/doc/${name} "gunzip ngspice${version}-manual.pdf.gz"
     63subport ngspice-docs {
     64    supported_archs     noarch
     65    description         PDF manual for ngspice
     66    long_description    ${description}
     67   
     68    distname            ${name}${version}-manual.pdf
     69    extract.suffix      .gz
     70   
     71    checksums           rmd160  ec9a55175ca352530565b224032b5bb04f14a51b \
     72                        sha256  dfb87979f285297f1e4c7fdbfc6380cc906f408019cdb39653d8e4411bb94ac4
     73   
     74    extract.only
     75   
     76    use_configure       no
     77   
     78    build {}
     79   
     80    destroot {
     81        xinstall -d ${destroot}${docdir}
     82        system "gzcat ${distpath}/${distfiles} > ${destroot}${docdir}/${name}-manual.pdf"
    5683    }
    5784}
    58 
    59 livecheck.regex ngspice-(\[0-9.\]+)${extract.suffix}
Note: See TracChangeset for help on using the changeset viewer.