Github messages for voidlinux
 help / color / mirror / Atom feed
From: fosslinux <fosslinux@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [WIP] New package: bazel-4.1.0
Date: Thu, 10 Jun 2021 09:42:21 +0200
Message-ID: <20210610074221.cXRP63e9klktG6fnKHHvugSqGtdchvb-o_ZVOS7dBgo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-31382@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 2296 bytes --]

New comment by fosslinux on void-packages repository

https://github.com/void-linux/void-packages/pull/31382#issuecomment-858391644

Comment:
I have attempted this in the past. Your bazel template looks sane.

Bazel is not sane. Neither is anki, has a stupid mix of nodejs, bazel, python and rust.

Here's my template thus far, not for the latest version yet:
```
# Template file for 'anki'
pkgname=anki
version=2.1.42
revision=1
hostmakedepends="bazel python3-pip git protobuf rust cargo rsync"
makedepends="protobuf-devel glib-devel python3-PyQt5-webengine"
depends="python3-PyQt5-webengine python3-requests python3-SQLAlchemy
 python3-PyAudio python3-mpv python3-Markdown python3-send2trash
 python3-BeautifulSoup4 python3-decorator python3-jsonschema
 python3-protobuf python3-Flask-Cors python3-waitress"
short_desc="Spaced repetition flashcard program"
maintainer="fosslinux <fosslinux@aussies.space>"
license="AGPL-3.0-or-later"
homepage="https://apps.ankiweb.net"
changelog="https://apps.ankiweb.net/docs/changes.html"
distfiles="https://github.com/ankitects/anki/archive/${version}.tar.gz"
checksum=a23e1ad9cc9d2ec2031810c847ae15efcd315123c7e0c3b3def40bd6d451d9c9
python_version=3
patch_args="-Np1"

do_build() {
        # Bazel dies on ccache
        if [ "$CROSS_BUILD" ]; then
                export CC="$(command -v ${XBPS_CROSS_TRIPLET}-gcc)"
        else
                export CC="$(command -v gcc)"
        fi
        export PYTHON_SITE_PACKAGES="${XBPS_CROSS_BASE}/${py3_sitelib}"

        bazel build -c opt dist --jobs=1
        bsdtar -xf bazel-bin/dist.tar
}

do_install() {
        # I dislike bazel
        PIP_CONFIG_FILE=/dev/null TMPDIR=/tmp python3 -m pip install --isolated --root=${DESTDIR} --prefix=/usr --ignore-installed --no-deps bazel-dist/*.whl

        vbin qt/runanki.py anki
        vinstall qt/linux/anki.desktop 644 usr/share/applications
        vinstall qt/linux/anki.png 644 usr/share/pixmaps
        vinstall qt/linux/anki.xpm 644 usr/share/pixmaps
        vman qt/linux/anki.1

        vlicense LICENSE
}
```

Haven't worked on it for a while.

Cross is still broken IIRC.  Mutlicore building is broken last I checked. Musl is broken (you may need a patch for bazel for musl which I have also).

  parent reply	other threads:[~2021-06-10  7:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-09 22:13 [PR PATCH] " Filius-Patris
2021-06-10  0:40 ` [PR REVIEW] " ericonr
2021-06-10  0:40 ` ericonr
2021-06-10  7:02 ` [PR PATCH] [Updated] [WIP] " Filius-Patris
2021-06-10  7:41 ` fosslinux
2021-06-10  7:42 ` fosslinux [this message]
2021-06-10 21:29 ` [PR PATCH] [Updated] " Filius-Patris
2021-06-11  9:22 ` Filius-Patris
2021-06-11 15:39 ` [PR PATCH] [Updated] " Filius-Patris
2021-06-11 15:39 ` Filius-Patris
2021-06-11 15:56 ` Filius-Patris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210610074221.cXRP63e9klktG6fnKHHvugSqGtdchvb-o_ZVOS7dBgo@z \
    --to=fosslinux@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Github messages for voidlinux

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/voidlinux-github

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 voidlinux-github voidlinux-github/ http://inbox.vuxu.org/voidlinux-github \
		voidlinux-github@inbox.vuxu.org
	public-inbox-index voidlinux-github

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.voidlinux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git