Skip to content

Commit

Permalink
libgdiplus: add mode line & whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusCalhoun-Lopez committed Feb 20, 2019
1 parent 8ba6e07 commit 0e0835c
Showing 1 changed file with 51 additions and 47 deletions.
98 changes: 51 additions & 47 deletions devel/libgdiplus/Portfile
@@ -1,60 +1,64 @@
PortSystem 1.0

name libgdiplus
version 2.10.9
revision 6
categories devel
platforms darwin
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
license {LGPL-2.1 MPL-1.1} X11
description An Open Source implementation of the GDI+ API
long_description An implementation of the GDI+ API for Mono, an \
effort to create an open source implementation of \
the .NET Development Framework including a C# compiler.

homepage http://www.mono-project.com/Libgdiplus
master_sites http://download.mono-project.com/sources/libgdiplus/
use_bzip2 yes

checksums rmd160 a4cbc7d3eaa518a2186b3f8e98fc485c7da4d30b \
sha256 6ddeb6c327bada7cb6e06d1a20714f526a0c69520dfd42c12ddd032c3c5d964e

depends_build port:pkgconfig

depends_lib port:jpeg \
port:tiff \
port:giflib \
port:libpng \
port:zlib \
port:fontconfig \
port:libiconv \
port:libexif \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
path:lib/pkgconfig/cairo.pc:cairo \
port:xorg-libsm \
port:xrender

patchfiles patch-freetype-2.5.1.diff \
patch-libpng-1.5.diff \
yosemite-libtool.patch
# -*- 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

PortSystem 1.0

name libgdiplus
version 2.10.9
revision 6
categories devel
platforms darwin
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
license {LGPL-2.1 MPL-1.1} X11
description An Open Source implementation of the GDI+ API
long_description An implementation of the GDI+ API for Mono, an \
effort to create an open source implementation of \
the .NET Development Framework including a C# compiler.

homepage http://www.mono-project.com/Libgdiplus
master_sites http://download.mono-project.com/sources/libgdiplus/
use_bzip2 yes

checksums rmd160 a4cbc7d3eaa518a2186b3f8e98fc485c7da4d30b \
sha256 6ddeb6c327bada7cb6e06d1a20714f526a0c69520dfd42c12ddd032c3c5d964e

depends_build port:pkgconfig

depends_lib port:jpeg \
port:tiff \
port:giflib \
port:libpng \
port:zlib \
port:fontconfig \
port:libiconv \
port:libexif \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
path:lib/pkgconfig/cairo.pc:cairo \
port:xorg-libsm \
port:xrender

patchfiles patch-freetype-2.5.1.diff \
patch-libpng-1.5.diff \
yosemite-libtool.patch

post-patch {
reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure
reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure
}

post-configure {
# https://bugs.gentoo.org/show_bug.cgi?id=431916
reinplace {s%-L${libjpeg_prefix}/lib%%g} ${worksrcpath}/libgdiplus.pc
}

test.run yes
test.target check
test.run yes
test.target check

post-destroot {
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog LICENSE NEWS \
README TODO ${destroot}${docdir}
set docdir ${prefix}/share/doc/${name}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} \
AUTHORS COPYING ChangeLog LICENSE NEWS \
README TODO \
${destroot}${docdir}
}

variant pango description {Enable Pango font rendering support (experimental)} {
Expand All @@ -73,7 +77,7 @@ variant pango description {Enable Pango font rendering support (experimental)} {
}

if {${os.platform} eq "darwin" && ${os.major} >= 10} {
patchfiles-append patch-disable-atsui-support.diff
patchfiles-append patch-disable-atsui-support.diff
}

livecheck.type regex
Expand Down

0 comments on commit 0e0835c

Please sign in to comment.