Skip to content

Commit

Permalink
AtomicParsley, AtomicParsley-devel: Add modeline
Browse files Browse the repository at this point in the history
and adjust whitespace to match and for consistency.
  • Loading branch information
ryandesign committed Jun 10, 2018
1 parent b1e4889 commit 5918a22
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 47 deletions.
51 changes: 26 additions & 25 deletions multimedia/AtomicParsley-devel/Portfile
@@ -1,47 +1,48 @@
PortSystem 1.0
# -*- 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

name AtomicParsley-devel
set svn_rev 110
version 0.9.2-r${svn_rev}
categories multimedia
maintainers nomaintainer
license GPL-2+
PortSystem 1.0

description MPEG-4 command line tool
long_description \
AtomicParsley is a lightweight command line program \
for reading, parsing and setting metadata into MPEG-4 files.
platforms darwin
homepage http://atomicparsley.sourceforge.net
name AtomicParsley-devel
set svn_rev 110
version 0.9.2-r${svn_rev}
categories multimedia
platforms darwin
maintainers nomaintainer
license GPL-2+

depends_lib port:zlib
description MPEG-4 command line tool

conflicts AtomicParsley
long_description AtomicParsley is a lightweight command line program \
for reading, parsing and setting metadata into MPEG-4 files.

fetch.type svn
svn.url https://svn.code.sf.net/p/atomicparsley/code/trunk/atomicparsley
svn.revision ${svn_rev}
homepage http://atomicparsley.sourceforge.net
fetch.type svn
svn.url https://svn.code.sf.net/p/atomicparsley/code/trunk/atomicparsley
svn.revision ${svn_rev}

conflicts AtomicParsley

depends_lib port:zlib

post-patch {
# fix usage of private type, b0rked in Leopard
# -eridius
reinplace -locale en_US.ISO8859-1 s|_NSBitmapImageFileType|NSBitmapImageFileType|g ${worksrcpath}/src/AP_NSImage.mm

# fix initializing a variable of type 'char *' with an rvalue of type 'const char *' b0rked in High Sierra
reinplace -locale en_US.ISO8859-1 -W ${worksrcpath}/src "s|= strrchr|= (char*)strrchr|g" AtomicParsley.cpp AP_MetadataListings.cpp AP_NSFile_utils.mm AP_NSImage.mm

# fix initializing a variable of type 'char *' with an rvalue of type 'const char *' b0rked in High Sierra
reinplace -locale en_US.ISO8859-1 -W ${worksrcpath}/src "s|= strrchr|= (char*)strrchr|g" AP_MetadataListings.cpp AP_NSFile_utils.mm AP_NSImage.mm AtomicParsley.cpp
}

worksrcdir atomicparsley
use_autoconf yes
worksrcdir atomicparsley
use_autoconf yes
pre-configure {
system -W ${worksrcpath} "autoheader"
}

use_parallel_build no
use_parallel_build no

destroot {
xinstall -m 755 ${worksrcpath}/AtomicParsley ${destroot}${prefix}/bin
}

livecheck.type none
livecheck.type none
48 changes: 26 additions & 22 deletions multimedia/AtomicParsley/Portfile
@@ -1,28 +1,29 @@
PortSystem 1.0
# -*- 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

name AtomicParsley
version 0.9.0
categories multimedia
platforms darwin
maintainers nomaintainer
license GPL-2+
PortSystem 1.0

description MPEG-4 command line tool
long_description AtomicParsley is a lightweight command line program \
for reading, parsing and setting metadata into MPEG-4 files.
name AtomicParsley
version 0.9.0
categories multimedia
platforms darwin
maintainers nomaintainer
license GPL-2+

homepage http://atomicparsley.sourceforge.net
master_sites sourceforge:project/atomicparsley/atomicparsley/AtomicParsley%20v${version}
distname ${name}-source-${version}
use_zip yes
checksums md5 681e6ecec2921c98e07a9262bdcd6cf2 \
sha1 6a73aed6ba569e693fe94a313e7e9e9ce204d038 \
rmd160 53026ab6b251614eb3a649fe611f86d68e06dc8e
description MPEG-4 command line tool

conflicts AtomicParsley-devel
long_description AtomicParsley is a lightweight command line program \
for reading, parsing and setting metadata into MPEG-4 files.

use_configure no
build.cmd ./build
homepage http://atomicparsley.sourceforge.net
master_sites sourceforge:project/atomicparsley/atomicparsley/AtomicParsley%20v${version}
distname ${name}-source-${version}
use_zip yes

checksums md5 681e6ecec2921c98e07a9262bdcd6cf2 \
sha1 6a73aed6ba569e693fe94a313e7e9e9ce204d038 \
rmd160 53026ab6b251614eb3a649fe611f86d68e06dc8e

conflicts AtomicParsley-devel

variant universal {}

Expand All @@ -32,13 +33,16 @@ post-patch {
# fix usage of private type, b0rked in Leopard
# -eridius
reinplace -locale en_US.ISO8859-1 "s|_NSBitmapImageFileType|NSBitmapImageFileType|g" ${worksrcpath}/AP_NSImage.mm

# fix initializing a variable of type 'char *' with an rvalue of type 'const char *' b0rked in High Sierra
reinplace -locale en_US.ISO8859-1 -W ${worksrcpath} "s|= strrchr|= (char*)strrchr|g" AP_NSFile_utils.mm AP_NSImage.mm AtomicParsley.cpp
}

use_configure no
build.cmd ./build

destroot {
xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
}

livecheck.regex ${name}-source-(\\d+(?:\\.\\d+)+)${extract.suffix}
livecheck.regex ${name}-source-(\\d+(?:\\.\\d+)+)${extract.suffix}

0 comments on commit 5918a22

Please sign in to comment.