Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sébastien Luttringer
infrastructure
Commits
25f357d2
Verified
Commit
25f357d2
authored
Mar 02, 2017
by
Jan Alexander Steffens (heftig)
Browse files
gitpkg: Add support for meson
parent
25c013a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/archbuild/files/gitpkg
View file @
25f357d2
...
...
@@ -334,9 +334,16 @@ if gitify
add_md
[
"git"
]
meson
=
!
meson_build
.
empty?
autotools
=
!
autogen
.
empty?
case
when
meson
add_md
[
"meson"
]
add_md
[
"vala"
,
meson_build
=~
/'vala'/
]
header
"Meson Options"
puts
repo
.
read_file
(
commit
,
"meson_options.txt"
)
when
autotools
unless
add_md
[
"gnome-common"
,
(
autogen
=~
/gnome-autogen\.sh/
||
configure
=~
/^GNOME_[A-Z_]+(\(|$)/
)]
...
...
@@ -358,6 +365,7 @@ if gitify
pbw
.
gsub
(
/(\${?
#{
pbr
.
basevar
}
}?|
#{
repo
.
name
}
)-\${?pkgver}?/
,
localname
)
meson
&&=
pbr
!~
/meson/
autotools
&&=
pbr
!~
/autogen\.sh/
{
...
...
@@ -382,6 +390,11 @@ if gitify
end
,
prepare:
case
when
meson
<<~
END
mkdir build
cd
#{
localname
}
END
when
autotools
<<~
END
cd
#{
localname
}
...
...
@@ -390,6 +403,11 @@ if gitify
end
,
check:
case
when
meson
<<~
END
cd build
ninja test
END
when
pbr
.
has_func?
(
:check
)
when
autotools
<<~
END
...
...
@@ -397,6 +415,24 @@ if gitify
make check
END
end
,
build:
case
when
meson
<<~
END
cd build
export LANG=en_US.UTF-8
meson --prefix=/usr --buildtype=plain ../
#{
localname
}
ninja
END
end
,
package:
case
when
meson
<<~
END
cd build
DESTDIR="$pkgdir" ninja install
END
end
,
}.
reverse_each
do
|
name
,
content
|
pbw
.
replace_func
(
name
,
content
)
if
content
end
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment