commit 1866370fe5e850979c364722e63c43962bdade0d
Author: Michael Dickens <michaelld@macports.org>
Date: Thu Mar 16 21:14:29 2017 -0400
libarchive: fix back to working
Reverts e4da3687 for release back to 3.2.2;
Adds devel version at current GIT master;
moves both release and devel to GitHub PG;
hopefully addresses ticket https://trac.macports.org/ticket/53712 .
diff --git a/archivers/libarchive/Portfile b/archivers/libarchive/Portfile
index 3678221b87..fc4c27c5e3 100644
a
|
b
|
|
1 | 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 | 2 | |
3 | | PortSystem 1.0 |
| 3 | PortSystem 1.0 |
| 4 | PortGroup github 1.0 |
| 5 | |
4 | 6 | name libarchive |
5 | | homepage http://libarchive.org/ |
6 | | master_sites ${homepage}downloads/ |
7 | | version 3.3.1 |
8 | 7 | categories archivers |
9 | 8 | license BSD |
10 | 9 | maintainers toby openmaintainer |
… |
… |
long_description \ |
16 | 15 | also write shar archives. |
17 | 16 | platforms darwin |
18 | 17 | |
19 | | checksums rmd160 229d68a81b7b4e5b7b12d5da88522e04974328b4 \ |
20 | | sha256 29ca5bd1624ca5a007aa57e16080262ab4379dbf8797f5c52f7ea74a3b0424e7 |
| 18 | if {${subport} eq ${name}} { |
| 19 | |
| 20 | github.setup libarchive libarchive 3.2.2 v |
| 21 | checksums rmd160 7a1339b824bed4fac3b2ff5780d6e5b3376194ad \ |
| 22 | sha256 c4b361aeac885700da77d243978dab0477f9e5b1e104240190dc28dc19c7f42d |
| 23 | |
| 24 | # original 3.2.2 archive is different from GitHub tagged version, |
| 25 | # so do a stealth upgrade hack to make it work |
| 26 | # NOTE: remove this on next release update |
| 27 | dist_subdir ${name}/${version}_1 |
| 28 | |
| 29 | # bump epoch because we reverted the version from 3.3.1 to 3.2.2 |
| 30 | epoch 1 |
| 31 | |
| 32 | conflicts libarchive-devel |
| 33 | |
| 34 | } |
| 35 | |
| 36 | subport libarchive-devel { |
| 37 | |
| 38 | github.setup libarchive libarchive a300fab1da39c0121027ae42e2d4f26b82c13d18 |
| 39 | version 20170316 |
| 40 | checksums rmd160 333d91894e229a34474066e79dbfe5b4604d15c5 \ |
| 41 | sha256 05104194e15500eec3da229c0797ca1286e2d6c920673c0167f7b61d46c78127 |
21 | 42 | |
22 | | depends_lib port:bzip2 port:zlib port:libxml2 port:xz \ |
| 43 | long_description ${long_description} \ |
| 44 | This port is kept up with the libarchive GIT 'master' branch, is typically updated weekly to monthly. |
| 45 | conflicts libarchive |
| 46 | |
| 47 | patchfiles-append patch-Makefile.am.devel.diff |
| 48 | |
| 49 | } |
| 50 | |
| 51 | homepage http://libarchive.org/ |
| 52 | |
| 53 | depends_lib port:bzip2 port:zlib \ |
| 54 | port:libxml2 port:xz \ |
23 | 55 | port:lzo2 port:libiconv \ |
24 | 56 | port:lz4 port:expat |
25 | 57 | |
26 | | patchfiles patch-libarchive__archive_read_support_format_lha.c.diff |
| 58 | depends_build-append port:autoconf \ |
| 59 | port:automake port:libtool |
| 60 | |
| 61 | patchfiles-append patch-libarchive__archive_read_support_format_lha.c.diff |
| 62 | |
| 63 | post-patch { |
| 64 | system -W ${worksrcpath} "build/autogen.sh" |
| 65 | } |
27 | 66 | |
28 | 67 | configure.args --enable-bsdtar=shared --enable-bsdcpio=shared \ |
29 | 68 | --disable-silent-rules --without-nettle \ |
30 | | --without-openssl --without-lzmadec |
31 | | |
32 | | livecheck.type regex |
33 | | livecheck.regex libarchive-(\[0-9.\]+)\\.tar.gz |
| 69 | --without-openssl |
diff --git a/archivers/libarchive/files/patch-Makefile.am.devel.diff b/archivers/libarchive/files/patch-Makefile.am.devel.diff
new file mode 100644
index 0000000000..7b3f79aec4
-
|
+
|
|
| 1 | --- Makefile.am.orig 2017-03-16 20:31:38.000000000 -0400 |
| 2 | +++ Makefile.am 2017-03-16 20:31:42.000000000 -0400 |
| 3 | @@ -23,7 +23,7 @@ |
| 4 | DISTCHECK_CONFIGURE_FLAGS = --enable-bsdtar --enable-bsdcpio |
| 5 | # The next line is commented out by default in shipping libarchive releases. |
| 6 | # It is uncommented by default in trunk. |
| 7 | -DEV_CFLAGS=-Werror -Wextra -Wunused -Wshadow -Wmissing-prototypes -Wcast-qual -g |
| 8 | +DEV_CFLAGS=-Wextra -Wunused -Wshadow -Wmissing-prototypes -Wcast-qual -g |
| 9 | AM_CFLAGS=$(DEV_CFLAGS) |
| 10 | PLATFORMCPPFLAGS = @PLATFORMCPPFLAGS@ |
| 11 | AM_CPPFLAGS=$(PLATFORMCPPFLAGS) |
diff --git a/devel/cmake/Portfile b/devel/cmake/Portfile
index 9f883a7ac1..905e3c7e16 100644
a
|
b
|
depends_lib-append port:curl \ |
90 | 90 | port:expat \ |
91 | 91 | port:zlib \ |
92 | 92 | port:bzip2 \ |
93 | | port:libarchive \ |
| 93 | path:lib/libarchive.dylib:libarchive \ |
94 | 94 | port:ncurses |
95 | 95 | |
96 | 96 | # allow use of libuv or libuv-devel; |