Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-libs/zziplib/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DIST zziplib-0.13.78-9388abc.tar.gz 1190854 BLAKE2B a12fe269fa812ee4d87fbc31439a30589390df9a34e0f24ff9f95fc2509394c43739047b5528ecea7c47ea79626e305974d4cabd79838c98652017ca7dbe13a5 SHA512 44ca080c4a78ee2707afe38323d9c93f71eab8e06f44c0e521dcbd137ae7ff6204c74ba7004524c1112274ae0ab96b059620e7e46cc21b9d9a809269ed8c06bd
DIST zziplib-0.13.79-c4927d0.tar.gz 1197849 BLAKE2B a088e7651b68dc958efe4e969a4104964eca39c7476cfb94d61a4b2cef7679ebaca4af4023b6aaa4f92767645f62d185947d519b6acc5c721b38858639eb7cc2 SHA512 e89b5f8d5b5793205aea027aa89602e8c6cdd3c2477eb51a23cf20fc10a357d5bc6053b10884f95d8e1db502d3ea82c43ededfcad8dea2c166261c33cdbda555
DIST zziplib-0.13.80-f58313c.tar.gz 1193117 BLAKE2B c57d0831af51d4fc1d7c3e8a5a5cece28094a867ece0bbffdf03432fb5be312f29d717670ae9f04004b90948f3c492722c9185772a091eb82f8eb66ce0889b12 SHA512 1a226b827d3e3a91407325388014139b7667e15c44fe297591c638d40a24dac06597b0815ba06be7f063c019777500c6d886650bfbbf768096b96ab9e0367297
52 changes: 52 additions & 0 deletions dev-libs/zziplib/zziplib-0.13.80.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3+ )
# Needed for docs; see Gentoo bug #835755
PYTHON_REQ_USE="xml(+)"
inherit cmake flag-o-matic python-any-r1

DESCRIPTION="Lightweight library for extracting data from files archived in a single zip file"
HOMEPAGE="https://github.com/gdraheim/zziplib https://zziplib.sourceforge.net"
SRC_URI="https://github.com/gdraheim/zziplib/tarball/f58313c1f65f46bf73f3526d1afd4d6bb46cc4ae -> zziplib-0.13.80-f58313c.tar.gz"

LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
SLOT="0/13"
KEYWORDS="*"
IUSE="sdl static-libs"

# Tests require internet access
# https://github.com/gdraheim/zziplib/issues/24

BDEPEND="
${PYTHON_DEPS}
"
DEPEND="
sys-libs/zlib
sdl? ( >=media-libs/libsdl-1.2.6 )
"
RDEPEND="${DEPEND}"

S="${WORKDIR}/gdraheim-zziplib-f58313c"


src_configure() {
# https://github.com/gdraheim/zziplib/commit/f3bfc0dd6663b7df272cc0cf17f48838ad724a2f#diff-b7b1e314614cf326c6e2b6eba1540682R100
append-flags -fno-strict-aliasing
# https://github.com/gdraheim/zziplib/issues/140 (bug #869980)
append-flags $(test-flags-CC -Wno-error=incompatible-function-pointer-types -Wno-error=int-conversion)

local mycmakeargs=(
-DZZIPSDL="$(usex sdl)"
-DBUILD_STATIC_LIBS="$(usex static-libs)"
-DBUILD_TESTS=OFF
-DZZIPTEST=OFF
-DZZIPDOCS=ON
-DZZIPWRAP=OFF
)

cmake_src_configure
}

# vim: noet ts=4 syn=ebuild