pantry/projects/mozilla.org/nspr/package.yml
Andrew 7abfa33955
freedesktop.org/poppler-qt5 (#3745)
* new file:   projects/freedesktop.org/poppler/lorem.pdf
	new file:   projects/freedesktop.org/poppler/package.yml

* renaming for convenience

* wip

* wip

* clang-format

* wip

* wip

* wip

* ok let's go

* gcc???

* we should stop shipping `as` with gcc...

* sigh

* ew

* bug in nspr; lock versions; use clang; clean up deps

* clang-format for darwin

* let's not

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
2023-11-20 18:40:10 -05:00

42 lines
974 B
YAML

distributable:
url: https://archive.mozilla.org/pub/nspr/releases/v{{version}}/src/nspr-{{version}}.tar.gz
strip-components: 1
versions:
url: https://archive.mozilla.org/pub/nspr/releases/
match: v\d+\.\d+\.\d+\
strip: /^v-/
build:
script:
- run: |
sed -i.bak 's|@executable_path|{{prefix}}/lib|g' configure
rm configure.bak
if: darwin
working-directory: nspr
- ./nspr/configure $ARGS
- make --jobs {{ hw.concurrency }}
- make --jobs {{ hw.concurrency }} install
- run: |
mv nspr/* .
rmdir nspr
ln -s . nspr
working-directory: ${{prefix}}/include
env:
ARGS:
- --prefix="{{prefix}}"
- --disable-debug
- --enable-strip
- --with-pthreads
- --enable-ipv6
- --enable-64bit
darwin:
ARGS:
- --enable-macos-target=$(sw_vers -productVersion)
provides:
- bin/nspr-config
test:
script: nspr-config --version | grep {{version}}