summaryrefslogtreecommitdiff
path: root/dev-libs/libslz
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libslz')
-rw-r--r--dev-libs/libslz/Manifest2
-rw-r--r--dev-libs/libslz/libslz-1.2.0.ebuild65
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-libs/libslz/Manifest b/dev-libs/libslz/Manifest
index f8b0c6d04ce7..8faf644edab0 100644
--- a/dev-libs/libslz/Manifest
+++ b/dev-libs/libslz/Manifest
@@ -1,3 +1,5 @@
DIST libslz-1.1.0.tar.bz2 229577 BLAKE2B d05b619d0b7b76c2777285ecaf976b75565b50c77e00a1ce042f5a28ab8d527788a75d28d70357a32ea9a98267ae621d5a6e4613e4a7e4f52767e68c77765bb3 SHA512 064e2e8e7091adf863653981e5b677bdb9e64901f61cf3b68f098cf7957a4c32e19cec7d41b8dab61098017119d6ea562350c7fbfa10b5e922f52ac0d6066948
+DIST libslz-1.2.0.tar.bz2 230567 BLAKE2B cf8a21fe0c23ae003830bfae3bd5ae172df4e88f63b0d5c1394c316e9d69c570b544d2c2db76cddd1e320d68119d7ae39352f9932673fb41e06ded030ebc5078 SHA512 811876f3893c0a0c273518fcf6d5a827a86513033e2048dbb541ca32286171c408f124495c4454ce7811e3c52ffb6a7bfcbb08af5b7f56a670c2c1cb2c5cd496
EBUILD libslz-1.1.0.ebuild 1171 BLAKE2B 198e5fca5067778136ff7a2b50b990879186b073095906e4ac134922386780822f5d6a6d52b8f9122f3a793944c19ce560ac77c24b429f50be1f28607b7d89fb SHA512 4d2e6f3c7b54edd926e9bbe275e999314fb3e7ab577abad77126ae88fbf477b6c2d98a0282d00cdc435228271cd8928eece3cb56a069fccd3d7fd69636a9feb4
+EBUILD libslz-1.2.0.ebuild 1175 BLAKE2B bfe8a7e5cd3d96b435a680a6b041fe4f8902bf99238d82ad4ffac2c26af06f4fdd094b7070c12d92809c5c86068f7f9da08f0aad9e7d48fdf9998833dfd0de4e SHA512 e15a12f2f40ad17b8bf5031f0158c827e2584b171403b454635ce38e23ce47b7238c760ca9e1df3298f227c93e105cb9a01b3337bfa17673e75523f90b5e4f0f
MISC metadata.xml 1176 BLAKE2B 912f2785a4418e9dda2014a1c7d9d8a47be8d38ceda9b56c45b5ac9ad05f5b0aa0793891d8436823ee1bb3a14f7f1239b15daa4ba1ee6dcf35c42a95e1b910bb SHA512 fd49087a1691173da56b6669a410d0db911b999fce1fba2536832ff13a8b4c7a304410fa5ba0f87b7587bdffab216b620ca5b8549936cbf21375139a402b771d
diff --git a/dev-libs/libslz/libslz-1.2.0.ebuild b/dev-libs/libslz/libslz-1.2.0.ebuild
new file mode 100644
index 000000000000..be90a23d2bc6
--- /dev/null
+++ b/dev-libs/libslz/libslz-1.2.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit toolchain-funcs multilib-minimal
+
+DESCRIPTION="stateless, zlib-compatible, and very fast compression library"
+HOMEPAGE="http://1wt.eu/projects/libslz"
+SRC_URI="http://git.1wt.eu/web?p=${PN}.git;a=snapshot;h=v${PV};sf=tbz2 -> ${P}.tar.bz2"
+
+LICENSE="MIT"
+SLOT="0/1"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+IUSE="static-libs tools"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ default
+
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ local -a opts=(
+ CC="$(tc-getCC)" \
+ OPT_CFLAGS="${CFLAGS}" \
+ USR_LFLAGS="${LDFLAGS}" \
+ shared \
+ $(usex static-libs static '')
+ )
+
+ if multilib_is_native_abi ; then
+ opts+=(
+ $(usex tools tools '')
+ )
+ fi
+
+ emake "${opts[@]}"
+}
+
+multilib_src_install() {
+ local -a opts=(
+ STRIP=":" \
+ DESTDIR="${ED}" \
+ PREFIX="${EPREFIX}/usr" \
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
+ install-headers
+ install-shared \
+ $(usex static-libs install-static '')
+ )
+
+ if multilib_is_native_abi ; then
+ einstalldocs
+
+ opts+=(
+ $(usex tools install-tools '')
+ )
+ fi
+
+ emake "${opts[@]}"
+}