Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: miniz-2.1.0
@ 2020-01-01 19:54 voidlinux-github
  2020-01-02  0:40 ` [PR PATCH] [Updated] [WIP]New " voidlinux-github
  2020-01-02 22:59 ` [PR PATCH] [Closed]: New " voidlinux-github
  0 siblings, 2 replies; 3+ messages in thread
From: voidlinux-github @ 2020-01-01 19:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 356 bytes --]

There is a new pull request by ndowens against master on the void-packages repository

https://github.com/ndowens/void-packages miniz
https://github.com/void-linux/void-packages/pull/17972

New package: miniz-2.1.0
Signed-off-by: Nathan Owens <ndowens04@gmail.com>

A patch file from https://github.com/void-linux/void-packages/pull/17972.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-miniz-17972.patch --]
[-- Type: text/x-diff, Size: 3514 bytes --]

From 35ad9f433b53cfeef67efaae840a76157aa6495a Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens04@gmail.com>
Date: Wed, 1 Jan 2020 13:22:56 -0600
Subject: [PATCH] New package: miniz-2.1.0

Signed-off-by: Nathan Owens <ndowens04@gmail.com>
---
 common/shlibs                       |  1 +
 srcpkgs/miniz-devel                 |  1 +
 srcpkgs/miniz/patches/library.patch | 33 +++++++++++++++++++++++++++++
 srcpkgs/miniz/template              | 28 ++++++++++++++++++++++++
 4 files changed, 63 insertions(+)
 create mode 120000 srcpkgs/miniz-devel
 create mode 100644 srcpkgs/miniz/patches/library.patch
 create mode 100644 srcpkgs/miniz/template

diff --git a/common/shlibs b/common/shlibs
index 611abc88b12..4e4a58a3c88 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3709,3 +3709,4 @@ libnvpair.so.1 zfs-0.8.2_1
 libjsonnet.so.0 jsonnet-0.14.0_2
 libjsonnet++.so.0 jsonnet-0.14.0_2
 libigdgmm.so.12 intel-gmmlib-19.3.4_1
+libminiz.so.2 miniz-2.1.0_1
diff --git a/srcpkgs/miniz-devel b/srcpkgs/miniz-devel
new file mode 120000
index 00000000000..0c4557f455c
--- /dev/null
+++ b/srcpkgs/miniz-devel
@@ -0,0 +1 @@
+miniz
\ No newline at end of file
diff --git a/srcpkgs/miniz/patches/library.patch b/srcpkgs/miniz/patches/library.patch
new file mode 100644
index 00000000000..5451532c803
--- /dev/null
+++ b/srcpkgs/miniz/patches/library.patch
@@ -0,0 +1,33 @@
+diff --git CMakeLists.txt CMakeLists.txt
+index f3e453a..c5d6244 100644
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -12,5 +12,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
+
+ set(miniz_SOURCE miniz.c miniz_zip.c miniz_tinfl.c miniz_tdef.c)
+
+-add_library(miniz ${miniz_SOURCE})
++add_library(objlibs OBJECT ${miniz_SOURCE})
++add_library(miniz_static STATIC $<TARGET_OBJECTS:objlibs>)
++add_library(miniz SHARED $<TARGET_OBJECTS:objlibs>)
++set_property(TARGET ${PROJECT_NAME} PROPERTY SOVERSION ${MINIZ_API_VERSION})
++set_property(TARGET ${PROJECT_NAME} PROPERTY VERSION ${MINIZ_VERSION})
+ target_include_directories(miniz PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
+
+ set(EXAMPLE1_SRC_LIST "${CMAKE_CURRENT_SOURCE_DIR}/examples/example1.c")
+diff --git CMakeLists.txt CMakeLists.txt
+index 80d8caa..d9ff957 100644
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -1,4 +1,11 @@
+ PROJECT(miniz C)
++
++set(MINIZ_API_VERSION 2)
++set(MINIZ_MINOR_VERSION 1)
++set(MINIZ_PATCH_VERSION 0)
++set(MINIZ_VERSION
++    ${MINIZ_API_VERSION}.${MINIZ_MINOR_VERSION}.${MINIZ_PATCH_VERSION})
++
+ cmake_minimum_required(VERSION 2.8)
+ if(CMAKE_BUILD_TYPE STREQUAL "")
+   # CMake defaults to leaving CMAKE_BUILD_TYPE empty. This screws up
diff --git a/srcpkgs/miniz/template b/srcpkgs/miniz/template
new file mode 100644
index 00000000000..0f8506a34ef
--- /dev/null
+++ b/srcpkgs/miniz/template
@@ -0,0 +1,28 @@
+# Template file for 'miniz'
+pkgname=miniz
+version=2.1.0
+revision=1
+build_style=cmake
+short_desc="Single C source file zlib-replacement library"
+maintainer="Nathan Owens <ndowens04@gmail.com>"
+license="MIT"
+homepage="https://github.com/richgel999/miniz"
+distfiles="https://github.com/richgel999/miniz/archive/${version}.tar.gz"
+checksum=95f9b23c92219ad2670389a23a4ed5723b7329c82c3d933b7047673ecdfc1fea
+
+CFLAGS="-fPIC"
+
+post_install() {
+	vinstall build/libminiz_static.a 644 usr/lib libminiz.a
+	vlicense LICENSE
+}
+
+miniz-devel_package() {
+	depends="${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.so"
+		vmove "usr/lib/*.a"
+	}
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Updated] [WIP]New package: miniz-2.1.0
  2020-01-01 19:54 [PR PATCH] New package: miniz-2.1.0 voidlinux-github
@ 2020-01-02  0:40 ` voidlinux-github
  2020-01-02 22:59 ` [PR PATCH] [Closed]: New " voidlinux-github
  1 sibling, 0 replies; 3+ messages in thread
From: voidlinux-github @ 2020-01-02  0:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

There is an updated pull request by ndowens against master on the void-packages repository

https://github.com/ndowens/void-packages miniz
https://github.com/void-linux/void-packages/pull/17972

[WIP]New package: miniz-2.1.0
Signed-off-by: Nathan Owens <ndowens04@gmail.com>

A patch file from https://github.com/void-linux/void-packages/pull/17972.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-miniz-17972.patch --]
[-- Type: text/x-diff, Size: 3320 bytes --]

From d526d83dc143338484953ec3f7e614b1867c90c6 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens04@gmail.com>
Date: Wed, 1 Jan 2020 13:22:56 -0600
Subject: [PATCH] New package: miniz-2.1.0

Signed-off-by: Nathan Owens <ndowens04@gmail.com>
---
 common/shlibs                       |  1 +
 srcpkgs/miniz-devel                 |  1 +
 srcpkgs/miniz/patches/library.patch | 30 +++++++++++++++++++++++++++++
 srcpkgs/miniz/template              | 26 +++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 120000 srcpkgs/miniz-devel
 create mode 100644 srcpkgs/miniz/patches/library.patch
 create mode 100644 srcpkgs/miniz/template

diff --git a/common/shlibs b/common/shlibs
index 611abc88b12..4e4a58a3c88 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3709,3 +3709,4 @@ libnvpair.so.1 zfs-0.8.2_1
 libjsonnet.so.0 jsonnet-0.14.0_2
 libjsonnet++.so.0 jsonnet-0.14.0_2
 libigdgmm.so.12 intel-gmmlib-19.3.4_1
+libminiz.so.2 miniz-2.1.0_1
diff --git a/srcpkgs/miniz-devel b/srcpkgs/miniz-devel
new file mode 120000
index 00000000000..0c4557f455c
--- /dev/null
+++ b/srcpkgs/miniz-devel
@@ -0,0 +1 @@
+miniz
\ No newline at end of file
diff --git a/srcpkgs/miniz/patches/library.patch b/srcpkgs/miniz/patches/library.patch
new file mode 100644
index 00000000000..dacd969d050
--- /dev/null
+++ b/srcpkgs/miniz/patches/library.patch
@@ -0,0 +1,30 @@
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -1,4 +1,11 @@
+ PROJECT(miniz C)
++
++set(MINIZ_API_VERSION 2)
++set(MINIZ_MINOR_VERSION 1)
++set(MINIZ_PATCH_VERSION 0)
++set(MINIZ_VERSION
++    ${MINIZ_API_VERSION}.${MINIZ_MINOR_VERSION}.${MINIZ_PATCH_VERSION})
++
+ cmake_minimum_required(VERSION 2.8)
+ if(CMAKE_BUILD_TYPE STREQUAL "")
+   # CMake defaults to leaving CMAKE_BUILD_TYPE empty. This screws up
+@@ -12,5 +19,12 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
+
+ set(miniz_SOURCE miniz.c miniz_zip.c miniz_tinfl.c miniz_tdef.c)
+
+-add_library(miniz ${miniz_SOURCE})
++add_library(objlibs OBJECT ${miniz_SOURCE})
++add_library(miniz_static STATIC $<TARGET_OBJECTS:objlibs>)
++add_library(miniz SHARED $<TARGET_OBJECTS:objlibs>)
++add_compile_options(-fPIC)
++set_property(TARGET ${PROJECT_NAME} PROPERTY SOVERSION ${MINIZ_API_VERSION})
++
++set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
++
+ target_include_directories(miniz PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
+
+ set(EXAMPLE1_SRC_LIST "${CMAKE_CURRENT_SOURCE_DIR}/examples/example1.c")
diff --git a/srcpkgs/miniz/template b/srcpkgs/miniz/template
new file mode 100644
index 00000000000..b925a6d94c4
--- /dev/null
+++ b/srcpkgs/miniz/template
@@ -0,0 +1,26 @@
+# Template file for 'miniz'
+pkgname=miniz
+version=2.1.0
+revision=1
+build_style=cmake
+short_desc="Single C source file zlib-replacement library"
+maintainer="Nathan Owens <ndowens04@gmail.com>"
+license="MIT"
+homepage="https://github.com/richgel999/miniz"
+distfiles="https://github.com/richgel999/miniz/archive/${version}.tar.gz"
+checksum=95f9b23c92219ad2670389a23a4ed5723b7329c82c3d933b7047673ecdfc1fea
+
+post_install() {
+	vinstall build/libminiz_static.a 644 usr/lib libminiz.a
+	vlicense LICENSE
+}
+
+miniz-devel_package() {
+	depends="${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.so"
+		vmove "usr/lib/*.a"
+	}
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Closed]: New package: miniz-2.1.0
  2020-01-01 19:54 [PR PATCH] New package: miniz-2.1.0 voidlinux-github
  2020-01-02  0:40 ` [PR PATCH] [Updated] [WIP]New " voidlinux-github
@ 2020-01-02 22:59 ` voidlinux-github
  1 sibling, 0 replies; 3+ messages in thread
From: voidlinux-github @ 2020-01-02 22:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

There's a closed pull request on the void-packages repository

New package: miniz-2.1.0
https://github.com/void-linux/void-packages/pull/17972

Description:
Signed-off-by: Nathan Owens <ndowens04@gmail.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-02 22:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-01 19:54 [PR PATCH] New package: miniz-2.1.0 voidlinux-github
2020-01-02  0:40 ` [PR PATCH] [Updated] [WIP]New " voidlinux-github
2020-01-02 22:59 ` [PR PATCH] [Closed]: New " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).