diff --git a/projects/github.com/kdave/btrfs-progs/package.yml b/projects/github.com/kdave/btrfs-progs/package.yml new file mode 100644 index 00000000..52610eac --- /dev/null +++ b/projects/github.com/kdave/btrfs-progs/package.yml @@ -0,0 +1,60 @@ +distributable: + url: https://github.com/kdave/btrfs-progs/archive/v{{version}}.tar.gz + strip-components: 1 + +versions: + github: kdave/btrfs-progs + +platforms: + - linux + +dependencies: + python.org: ~3.11 + sourceforge.net/e2fsprogs: ^1.47 + oberhumer.com/lzo: ^2.10 + systemd.io: ^255 # for libudev + github.com/util-linux/util-linux: ^2.39 + zlib.net: ^1.3 + facebook.com/zstd: ^1.5 + +runtime: + env: + PYTHONPATH: ${{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages:$PYTHONPATH + +build: + dependencies: + sphinx-doc.org: '*' + gnu.org/autoconf: '*' + gnu.org/automake: '*' + gnu.org/libtool: '*' + script: + - patch -p1 < props/patch.diff # remove sphinx-rtd-theme extension for html docs + - ./autogen.sh + - ./configure $ARGS + - make --jobs {{hw.concurrency}} install V=1 udevdir={{prefix}}/lib/udev + - python -m pip install --prefix={{prefix}} ./libbtrfsutil/python + env: + ARGS: + - --disable-debug + - --disable-dependency-tracking + - --prefix={{prefix}} + - --libdir={{prefix}}/lib + +provides: + - bin/btrfs + - bin/btrfsck + - bin/btrfs-convert + - bin/btrfs-find-root + - bin/btrfs-image + - bin/btrfs-map-logical + - bin/btrfs-select-super + - bin/btrfstune + - bin/fsck.btrfs + - bin/mkfs.btrfs + +test: + - btrfs --version | grep {{version}} + - truncate -s 128M test.img + - mkfs.btrfs test.img | grep '128.00MiB' + - btrfs filesystem show test.img | grep 'Total devices 1 FS' + - python -c 'import btrfsutil' \ No newline at end of file diff --git a/projects/github.com/kdave/btrfs-progs/patch.diff b/projects/github.com/kdave/btrfs-progs/patch.diff new file mode 100644 index 00000000..1f57580e --- /dev/null +++ b/projects/github.com/kdave/btrfs-progs/patch.diff @@ -0,0 +1,24 @@ +diff --git a/Documentation/conf.py b/Documentation/conf.py +index 014352a..c7a629c 100644 +--- a/Documentation/conf.py ++++ b/Documentation/conf.py +@@ -33,10 +33,6 @@ templates_path = ['_templates'] + # This pattern also affects html_static_path and html_extra_path. + exclude_patterns = ['_build'] + +-# The theme to use for HTML and HTML Help pages. See the documentation for +-# a list of builtin themes. +-html_theme = 'sphinx_rtd_theme' +- + # Add any paths that contain custom static files (such as style sheets) here, + # relative to this directory. They are copied after the builtin static files, + # so a file named "default.css" will overwrite the builtin "default.css". +@@ -76,8 +72,6 @@ man_pages = [ + ('btrfs-man5', 'btrfs', 'topics about the BTRFS filesystem (mount options, supported file attributes and other)', '', 5), + ] + +-extensions = [ 'sphinx_rtd_theme' ] +- + # Cross reference with document and label + # Syntax: :docref`Title ` + # Backends: html, man, others \ No newline at end of file