A Gentoo overlay that provides ebuilds for xmake and related packages.
This overlay contains ebuilds for packages that use the xmake build system, including:
- xmake_ls - A language server for xmake projects
- tbox - A glib-like multi-platform C library
- xmake.eclass - A custom eclass for building xmake-based packages in Gentoo
eselect repository add xmake-overlay git https://github.com/xmake-io/xmake-overlay.git
emerge --sync xmake-overlayIf you have a local clone of the repository:
eselect repository add xmake-overlay git /path/to/local/xmake-overlay
emerge --sync xmake-overlayAdd the overlay to your /etc/portage/repos.conf/xmake-overlay.conf:
[xmake-overlay]
location = /var/db/repos/xmake-overlay
sync-type = git
sync-uri = https://github.com/xmake-io/xmake-overlay.git
auto-sync = yesThen sync:
emerge --syncA language server for xmake that provides IDE integration features like:
- Auto-completion
- Go to definition
- Find references
- Diagnostics
- And more...
emerge dev-util/xmake_lsA glib-like multi-platform C library with features like:
- Cross-platform utilities
- Memory management
- String operations
- File I/O
- Network programming
- And more...
emerge dev-libs/tboxThis overlay includes a custom xmake.eclass that provides functions for building xmake-based packages:
xmake_src_prepare()- Prepares the build environmentxmake_src_configure()- Configures the xmake projectxmake_src_compile()- Builds the projectxmake_src_install()- Installs the built files
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit xmake
DESCRIPTION="Your package description"
HOMEPAGE="https://github.com/user/project"
SRC_URI="https://github.com/user/project/archive/v${PV}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND=""
RDEPEND="${DEPEND}"
# Set the project kind (shared, static, or executable)
XMAKE_PROJECT_KIND="shared"
# Optional: Add extra configuration flags
# XMAKE_EXTRA_CONFIG_FLAGS=( "--demo=n" "--small=y" )- Gentoo Linux or any derived Linux distributions or a Gentoo Prefix running on supported host OS
- Portage package manager
- Git (for repository synchronization)
Contributions are welcome! Please feel free to submit pull requests or open issues for:
- New package ebuilds
- Bug fixes
- Improvements to the xmake.eclass
- Documentation updates
This overlay is licensed under the GNU General Public License v2. Individual packages may have different licenses as specified in their respective ebuild files.
For issues related to:
- This overlay: Please open an issue on the xmake-io/xmake-overlay repository
- xmake itself: Visit the xmake GitHub repository
- Gentoo packaging: Refer to the Gentoo Wiki