diff options
author | Eric Wong <e@80x24.org> | 2023-01-09 05:52:38 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-01-09 06:22:09 +0000 |
commit | 4106dfd813ce42678e0395eda42e36149d1ac851 (patch) | |
tree | 2d6c5c088b7ea4da6997604c9a4e6024208d1b9d /mwrap.gemspec | |
parent | ee995d418cc8cfcb148159d84c4f1d6f40108b6d (diff) | |
download | mwrap-4106dfd813ce42678e0395eda42e36149d1ac851.tar.gz |
FreeBSD 12.x doesn't seem to work with the `pkg install'-ed ruby
Diffstat (limited to 'mwrap.gemspec')
-rw-r--r-- | mwrap.gemspec | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mwrap.gemspec b/mwrap.gemspec index dc99924..b6f9e71 100644 --- a/mwrap.gemspec +++ b/mwrap.gemspec @@ -1,6 +1,5 @@ git_manifest = `git ls-files 2>/dev/null`.split("\n") git_ok = $?.success? -git_manifest << 'lib/mwrap/version.rb'.freeze # generated by ./VERSION-GEN manifest = File.exist?('MANIFEST') ? File.readlines('MANIFEST').map!(&:chomp).delete_if(&:empty?) : git_manifest if git_ok && manifest != git_manifest @@ -12,11 +11,19 @@ end version = `./VERSION-GEN`.chomp $?.success? or abort './VERSION-GEN failed' +manifest << 'lib/mwrap/version.rb'.freeze + +if system(*%w(make -C Documentation man)) || + system(*%w(gmake -C Documentation man)) + manifest.concat(%w(Documentation/mwrap.1)) +else + warn 'failed to build man-page(s), proceeding without them' +end Gem::Specification.new do |s| s.name = 'mwrap' s.version = version - s.homepage = 'https://80x24.org/mwrap/' + s.homepage = 'https://80x24.org/mwrap.git/' s.authors = ["mwrap hackers"] s.summary = 'LD_PRELOAD malloc wrapper for Ruby' s.executables = %w(mwrap) |