Skip to content

Commit

Permalink
+github.com/kdave/btrfs-progs (#5356)
Browse files Browse the repository at this point in the history
* new file:   projects/github.com/kdave/btrfs-progs/package.yml
	new file:   projects/github.com/kdave/btrfs-progs/patch.diff

* modified:   projects/github.com/kdave/btrfs-progs/package.yml
  • Loading branch information
and-ri authored Feb 24, 2024
1 parent 26fe5bd commit e8f42a7
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 0 deletions.
60 changes: 60 additions & 0 deletions projects/github.com/kdave/btrfs-progs/package.yml
Original file line number Diff line number Diff line change
@@ -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'
24 changes: 24 additions & 0 deletions projects/github.com/kdave/btrfs-progs/patch.diff
Original file line number Diff line number Diff line change
@@ -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 <rawdocname:label>`
# Backends: html, man, others

0 comments on commit e8f42a7

Please sign in to comment.