Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739856 - dev-libs/basez-1.6.2 - base 16/32/64 encode/decode data to standard output
Summary: dev-libs/basez-1.6.2 - base 16/32/64 encode/decode data to standard output
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL: http://www.quarkline.net/basez/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2020-09-01 09:22 UTC by vite
Modified: 2020-09-02 15:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
basez-1.6.2.ebuild (basez-1.6.2.ebuild,2.10 KB, text/plain)
2020-09-01 09:22 UTC, vite
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vite 2020-09-01 09:22:06 UTC
Created attachment 657712 [details]
basez-1.6.2.ebuild

Hi, please consider adding the basez package.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-02 05:59:52 UTC
Comment on attachment 657712 [details]
basez-1.6.2.ebuild

># Copyright 2020 Gentoo Authors
># Distributed under the terms of the GNU General Public License v2
>
>EAPI=7
>
>inherit bash-completion-r1
>
>DESCRIPTION="basez - base 16/32/64 encode/decode data to standard output"

Do not use the package name in the DESCRIPTION.

>HOMEPAGE="http://www.quarkline.net/basez/"
>SRC_URI="http://www.quarkline.net/basez/download/${P}.tar.gz"
>
>LICENSE="GPL-3"
>SLOT="0"
>KEYWORDS="~amd64 ~x86"
>IUSE="+man +doc bash-completion"
>
>RESTRICT="strip"
>
>src_unpack() {
>	unpack ${A}
>}

This is the default for scr_unpack() so it is not needed.

>
>src_configure() {
>	if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then

This test is part of econf, so no need to do that here.

>		econf --with-bash-completion-dir="$(get_bashcompdir)"
>	fi
>}
>
>src_compile() {
>	if [[ -f Makefile ]] ; then

This test is part of emake, so no need to do that here.

>		emake || die
>	fi
>}

The entire src_compile() can be removed and the default will be used instead.
(Also, what is the outcome when no Makefile is found?)

>
>src_install() {
>	local BIN_D=/usr/bin
>	local MAN_D=/usr/share/man/man1
>	dobin basez
>
>	if use man ; then
>		doman "basez.1"
>	fi
>
>	if use doc ; then
>		dodoc LICENSE TODO
>	fi
>
>	if use bash-completion ; then
>		local BIN="$BIN_D/basez"
>		dosym "$BIN" "$BIN_D/base16"
>		dosym "$BIN" "$BIN_D/base32"
>		dosym "$BIN" "$BIN_D/base32hex"
>		dosym "$BIN" "$BIN_D/base32plain"
>		dosym "$BIN" "$BIN_D/base64"
>		dosym "$BIN" "$BIN_D/base64mime"
>		dosym "$BIN" "$BIN_D/base64pem"
>		dosym "$BIN" "$BIN_D/base64plain"
>		dosym "$BIN" "$BIN_D/base64url"
>		dosym "$BIN" "$BIN_D/hex"
>		dosym "$BIN" "$BIN_D/unhex"

You could write a bash function for that or a for-do-done loop.

>		
>		emake DESTDIR="${D}" "${PN}-completion"
>		newbashcomp "${PN}-completion" "${PN}"
>		bashcomp_alias "${PN}" base16
>		bashcomp_alias "${PN}" base32
>		bashcomp_alias "${PN}" base32hex
>		bashcomp_alias "${PN}" base32plain
>		bashcomp_alias "${PN}" base64
>		bashcomp_alias "${PN}" base64mime
>		bashcomp_alias "${PN}" base64pem
>		bashcomp_alias "${PN}" base64plain
>		bashcomp_alias "${PN}" base64url
>		bashcomp_alias "${PN}" hex
>		bashcomp_alias "${PN}" unhex
>	fi

Same here

>
>	if use bash-completion && use man ; then
>		local MAN="$MAN_D/basez.1"
>		dosym "$MAN" "$MAN_D/base16.1"
>		dosym "$MAN" "$MAN_D/base32.1"
>		dosym "$MAN" "$MAN_D/base32hex.1"
>		dosym "$MAN" "$MAN_D/base32plain.1"
>		dosym "$MAN" "$MAN_D/base64.1"
>		dosym "$MAN" "$MAN_D/base64mime.1"
>		dosym "$MAN" "$MAN_D/base64pem.1"
>		dosym "$MAN" "$MAN_D/base64plain.1"
>		dosym "$MAN" "$MAN_D/base64url.1"
>		dosym "$MAN" "$MAN_D/hex.1"
>		dosym "$MAN" "$MAN_D/unhex.1"
>	fi

Same here.

>}

Also, does the standard `(e)make install' not work?
Comment 2 vite 2020-09-02 15:23:41 UTC
Jeroen Roovers, please do it at your discretion.