-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add missing flags and dependencies * Cleanup all around Signed-off-by: Alfred Wingate <parona@protonmail.com>
- Loading branch information
1 parent
ee1081b
commit 2adeb7a
Showing
2 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Copyright 2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit meson | ||
|
||
DESCRIPTION="Chimera's core userland, based on FreeBSD" | ||
HOMEPAGE="https://chimera-linux.org" | ||
|
||
if [[ ${PV} == 9999 ]]; then | ||
inherit git-r3 | ||
EGIT_REPO_URI="https://github.com/chimera-linux/chimerautils.git" | ||
else | ||
SRC_URI="https://github.com/chimera-linux/chimerautils/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
KEYWORDS="~amd64" | ||
fi | ||
|
||
IUSE="+bzip2 +libedit +lzma +openssl +terminfo tiny +zlib" | ||
LICENSE="BSD" | ||
SLOT="0" | ||
RDEPEND=" | ||
sys-apps/acl | ||
sys-libs/libxo | ||
bzip2? ( app-arch/bzip2 ) | ||
libedit? ( dev-libs/libedit ) | ||
lzma? ( app-arch/xz-utils ) | ||
openssl? ( dev-libs/openssl:= ) | ||
terminfo? ( sys-libs/ncurses:= ) | ||
zlib? ( sys-libs/zlib ) | ||
" | ||
DEPEND=" | ||
${RDEPEND} | ||
" | ||
BDEPEND=" | ||
app-alternatives/lex | ||
app-alternatives/yacc | ||
virtual/pkgconfig | ||
" | ||
|
||
PATCHES=( | ||
"${FILESDIR}/chimerautils-13.2.8-find-POSIXLY_CORRECT.patch" | ||
) | ||
src_prepare() { | ||
eapply_user | ||
|
||
export BSD_PREFIX="${EPREFIX}/opt/bsd" | ||
|
||
# Make bc uses prefix path | ||
sed -i \ | ||
-e "s|/usr/bin/dc|${BSD_PREFIX}/bin/dc|" \ | ||
-e "s|/usr/share/misc/bc.library|${BSD_PREFIX}/share/misc/bc.library|" \ | ||
src.freebsd/bc/bc/pathnames.h || die | ||
} | ||
|
||
src_configure() { | ||
local emesonargs=( | ||
$(meson_feature bzip2) | ||
$(meson_feature libedit) | ||
$(meson_feature lzma) | ||
$(meson_feature openssl) | ||
$(meson_feature tiny) | ||
$(meson_feature zlib) | ||
$(meson_use terminfo color_ls) | ||
--prefix=${BSD_PREFIX} | ||
) | ||
|
||
meson_src_configure | ||
} | ||
|
||
pkg_postinst() { | ||
elog "Add \"${BSD_PREFIX}/bin\" to \$PATH and add \"${BSD_PREFIX}/share/man\" to \$MANPATH" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters