From a0c6328dd72ad47c10089f4b8a66f1c896ccda2d Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 9 Dec 2018 09:13:44 -0200 Subject: [PATCH] atomicparsley: update to 0.9.6. --- .../atomicparsley/patches/musl-fpos_t.patch | 4 +- .../atomicparsley/patches/use-stdint_h.patch | 42 ------------------- srcpkgs/atomicparsley/template | 37 ++++++---------- 3 files changed, 14 insertions(+), 69 deletions(-) delete mode 100644 srcpkgs/atomicparsley/patches/use-stdint_h.patch diff --git a/srcpkgs/atomicparsley/patches/musl-fpos_t.patch b/srcpkgs/atomicparsley/patches/musl-fpos_t.patch index b19a3051854..b9a56fdca0e 100644 --- a/srcpkgs/atomicparsley/patches/musl-fpos_t.patch +++ b/srcpkgs/atomicparsley/patches/musl-fpos_t.patch @@ -1,5 +1,5 @@ ---- AtomicParsley.cpp 2017-01-27 18:09:38.871046030 +0100 -+++ AtomicParsley.cpp 2017-01-27 18:10:35.548088839 +0100 +--- src/parsley.cpp ++++ src/parsley.cpp @@ -4585,10 +4585,11 @@ #if defined(_MSC_VER) fpos_t file_offset = dest_position + file_pos; diff --git a/srcpkgs/atomicparsley/patches/use-stdint_h.patch b/srcpkgs/atomicparsley/patches/use-stdint_h.patch deleted file mode 100644 index 4b8a354168d..00000000000 --- a/srcpkgs/atomicparsley/patches/use-stdint_h.patch +++ /dev/null @@ -1,42 +0,0 @@ -Instead of defining the integer types locally include - ---- AP_commons.h 2006-08-27 04:35:15.000000000 +0200 -+++ AP_commons.h 2017-01-27 18:01:09.520651784 +0100 -@@ -21,36 +21,7 @@ - - #include - #include -- --#ifndef _UINT8_T --#define _UINT8_T --typedef unsigned char uint8_t; --#endif /*_UINT8_T */ -- --#ifndef _UINT16_T --#define _UINT16_T --typedef unsigned short uint16_t; --#endif /* _UINT16_T */ -- --#ifndef _UINT32_T --#ifndef __uint32_t_defined --typedef unsigned int uint32_t; --#endif --#endif /*_UINT32_T */ -- --#ifndef _UINT64_T --#define _UINT64_T --#if defined (_MSC_VER) --typedef unsigned __int64 uint64_t; --#else --typedef unsigned long long uint64_t; --#endif /* _MSC_VER */ --#endif /* _UINT64_T */ -- --#ifndef _INT16_T --#define _INT16_T --typedef short int16_t; --#endif /* _INT16_T */ -+#include - - #if defined (__ppc__) || defined (__ppc64__) - #define SWAP16(x) (x) diff --git a/srcpkgs/atomicparsley/template b/srcpkgs/atomicparsley/template index 54a588a21d7..b82abf7d377 100644 --- a/srcpkgs/atomicparsley/template +++ b/srcpkgs/atomicparsley/template @@ -1,31 +1,18 @@ # Template file for 'atomicparsley' pkgname=atomicparsley -version=0.9.0 -revision=3 -hostmakedepends="unzip" +version=0.9.6 +revision=1 +wrksrc=wez-atomicparsley-da2f6e4fc120 +build_style=gnu-configure +hostmakedepends="automake" +makedepends="zlib-devel" short_desc="Lightweight program for manipulating MPEG-4 metadata" -maintainer="svenper " +maintainer="svenper " license="GPL-2.0-or-later" -homepage="http://atomicparsley.sourceforge.net" -distfiles="${SOURCEFORGE_SITE}/${pkgname}/AtomicParsley-source-${version}.zip" -checksum=de83f219f95e6fe59099b277e3ced86f0430ad9468e845783092821dff15a72e -wrksrc=AtomicParsley-source-${version} +homepage="https://bitbucket.org/wez/atomicparsley/" +distfiles="https://bitbucket.org/wez/atomicparsley/get/${version}.tar.gz" +checksum=8ba4e3e21d7a9239932e2a6f34842194d8f9eba84ce9eb83fb35369f5f3f05ab -CXXFLAGS="-Wno-write-strings" - -pre_build() { - sed -ri 's/(char\*.*strrchr.*)/const \1/g' AtomicParsley.cpp - sed -ri 's/(char\* suffix = NULL;)/const \1/g' AtomicParsley.cpp - sed -ri 's/(^[[:space:]]*g\+\+)/\1 \$CXXFLAGS/g' build - sed -ri 's/(^[[:space:]])*g\+\+/"\1\$CXX"/g' build - sed -ri 's/(-o.*(obj_files.*){8})/\$LDFLAGS \1/g' build -} - -do_build() { - CXX="${CXX:-g++}" LD="$CXX" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" ./build -} - -do_install() { - vbin AtomicParsley - vlicense COPYING +pre_configure() { + ./autogen.sh }