xmake-io / xmake-docs

The xmake online documentation site
https://xmake.io
49 stars 101 forks source link

emerge包管理器加入xmake #60

Closed inclyc closed 2 years ago

inclyc commented 2 years ago

你在什么场景下需要该功能?

在Gentoo中安装xmake

描述可能的解决方案

糊了一份简单的ebuild,只在amd64做过测试

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="A cross-platform build utility based on Lua"
HOMEPAGE="https://github.com/xmake-io/xmake"
SRC_URI="https://github.com/xmake-io/xmake/releases/download/v${PV}/${PN}-v${PV}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
S="${WORKDIR}"

DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""

src_compile() {
        emake build
}

src_install() {
        emake install DESTDIR="${D}" PREFIX="/usr"
}

描述你认为的候选方案

No response

其他信息

No response

waruqi commented 2 years ago

issues 应该提到 xmake/issues 而不是这里

另外,已经有官方维护的仓库:https://github.com/xmake-io/xmake-package-gentoo