dev-libs/libb64 - 1.2.1 (pinkbyte)

Search

Package Information

Description:
C/C++ routines for fast encoding/decoding data into and from a base64-encoded format
Homepage:
http://libb64.sourceforge.net
License:
LGPL-2.1

Ebuild Details

Version EAPI Keywords Slot
1.2.1 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit multilib toolchain-funcs

DESCRIPTION="C/C++ routines for fast encoding/decoding data into and from a base64-encoded format"
HOMEPAGE="http://libb64.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND="app-arch/unzip"
RDEPEND=""

#PATCHES=( "${FILESDIR}/${P}-build-shared-lib.patch" )

src_prepare() {
	# Respect compiler environment
	tc-export CC CXX

	# Build shared library instead of static
	eapply -p0 "${FILESDIR}/${P}-build-shared-lib.patch"

	eapply_user
}

src_compile() {
	# Build library only
	emake all_src
}

src_install() {
	doheader -r include/b64
	dolib.so "src/${PN}.so"
	dosym "${PN}.so" "/usr/$(get_libdir)/${PN}.so.1"
}

Dependencies

DEPEND

app-arch/unzip

Manifest for 1.2.1

Type File Size Source URLs
DIST libb64-1.2.1.zip 23316 bytes mirror://sourceforge/libb64/libb64-1.2.1.zip