Ticket #53800: git-latexdiff_Portfile

File git-latexdiff_Portfile, 1.6 KB (added by jjstickel (Jonathan Stickel), 8 years ago)
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
3PortSystem          1.0
4
5name                git-latexdiff
6version             1.2.0
7categories          devel tex
8platforms           darwin
9supported_archs     noarch
10maintainers         gmail.com:jjstickel openmaintainer
11license             BSD
12
13description         Tool for using latexdiff on latex documents in git \
14                    repositories
15long_description    Tool to graphically visualize differences between \
16                    different versions of LaTeX files between commits in a \
17                    git repository. Technically, it is a wrapper around git \
18                    and latexdiff.
19
20homepage        https://gitlab.com/${name}/${name}
21master_sites    https://gitlab.com/${name}/${name}/repository/archive.tar.gz?ref=v${version}&dummy=
22distname        ${name}-v${version}-2bd0dcbf2a14de7c311382ed03eb24bac661ac69
23
24checksums           rmd160  29b61b526bbed34d32ed8d945c3e569a36d10fc7 \
25    sha256  76b19b623749025bde0617776237dbd6763a21d19cd6b6b353765846dac766ec
26
27depends_lib-append  port:git \
28                    port:texlive-bin-extra
29
30depends_build-append    port:asciidoc
31
32patchfiles   makefile.diff
33post-patch  {
34    reinplace "s|(prefix)|${prefix}|g" ${worksrcpath}/Makefile
35    reinplace "s|(destroot)|${destroot}|g" ${worksrcpath}/Makefile
36    reinplace "s|(version)|${version}|g" ${worksrcpath}/Makefile
37}
38use_configure   no
39build   {
40    # create dummy git repository so that git-latexdiff command in Makefile (to
41    # create man page) works correctly
42    system -W ${worksrcpath} "${prefix}/bin/git init ."
43}