This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pandoc: Updated to more compatible Linux version and include pandoc-c…
…iteproc Centos5.11 compatible binaries now sourced from: https://copr-be.cloud.fedoraproject.org/results/petersen/pandoc-el5 pandoc-citeproc was already included for the other platforms so Linux should also have it. This package is needed by both RStudio and r-htmlwidgets.
- Loading branch information
1 parent
6638ee8
commit 35f3b4b
Showing
4 changed files
with
67 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
msiexec /a pandoc-%PKG_VERSION%-windows.msi /qb TARGETDIR=%TEMP% | ||
mkdir %SCRIPTS% | ||
copy %TEMP%\Pandoc\*.exe %SCRIPTS% | ||
msiexec /a pandoc-%PKG_VERSION%-windows.msi /qb TARGETDIR=%TEMP% || exit 1 | ||
|
||
if not exist %SCRIPTS% mkdir %SCRIPTS% || exit 1 | ||
|
||
copy %TEMP%\Pandoc\*.exe %SCRIPTS% || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,35 @@ | ||
#!/bin/bash | ||
|
||
if [ `uname` == Linux ]; then | ||
ar vx pandoc*.deb | ||
tar -xzvf data.tar.gz | ||
mkdir $PREFIX/bin | ||
mv usr/bin/* $PREFIX/bin | ||
if [ $(uname) == Linux ]; then | ||
if [ "${ARCH}" == "32" ]; then | ||
wget -c --no-check-certificate https://copr-be.cloud.fedoraproject.org/results/petersen/pandoc-el5/epel-5-i386/00125413-pandoc/pandoc-citeproc-0.7.2-1.i386.rpm | ||
else | ||
wget -c --no-check-certificate https://copr-be.cloud.fedoraproject.org/results/petersen/pandoc-el5/epel-5-x86_64/00125413-pandoc/pandoc-citeproc-0.7.2-1.x86_64.rpm | ||
fi | ||
RPMS=$(find . -name "*.rpm") | ||
for RPM in ${RPMS}; do | ||
rpm2cpio ${RPM} | cpio -idv | ||
done | ||
mkdir -p ${PREFIX}/bin | ||
mv usr/bin/* ${PREFIX}/bin | ||
# I have not got the time to add GHC | ||
# to conda and must therefore do this | ||
for EXE in pandoc pandoc-citeproc; do | ||
patchelf --replace-needed libgmp.so.3 libgmp.so.10 ${PREFIX}/bin/${EXE} | ||
patchelf --replace-needed libffi.so.5 libffi.so.6 ${PREFIX}/bin/${EXE} | ||
done | ||
fi | ||
|
||
|
||
if [ `uname` == Darwin ]; then | ||
pkgutil --expand pandoc-$PKG_VERSION.pkg pandoc | ||
cpio -i -I pandoc/pandoc.pkg/Payload | ||
mkdir $PREFIX/bin | ||
cp usr/local/bin/* $PREFIX/bin/ | ||
if [ $(uname) == Darwin ]; then | ||
pkgutil --expand pandoc-${PKG_VERSION}-osx.pkg pandoc | ||
cpio -i -I pandoc/pandoc.pkg/Payload | ||
mkdir -p ${PREFIX}/bin | ||
cp usr/local/bin/* ${PREFIX}/bin/ | ||
for EXE in pandoc pandoc-citeproc; do | ||
# Unfortunately neither -headerpad nor -headerpad_max_install_names were used when building this. | ||
# install_name_tool -change /usr/lib/libz.1.dylib $PREFIX/lib/libz.1.dylib ${PREFIX}/bin/${EXE} | ||
# install_name_tool -change /usr/lib/libiconv.2.dylib $PREFIX/lib/libiconv.2.dylib ${PREFIX}/bin/${EXE} | ||
install_name_tool -change /usr/lib/libz.1.dylib @loader_path/../lib/libz.1.dylib ${PREFIX}/bin/${EXE} | ||
# install_name_tool -change /usr/lib/libiconv.2.dylib @loader_path/../lib/libiconv.2.dylib ${PREFIX}/bin/${EXE} | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,45 @@ | ||
{% set version = "1.15.0.6" if linux else "1.19.2" %} | ||
|
||
package: | ||
name: pandoc | ||
version: 1.15.2 | ||
version: {{ version }} | ||
|
||
source: | ||
fn: pandoc-1.15.2-1-amd64.deb # [linux64] | ||
url: https://github.com/jgm/pandoc/releases/download/1.15.2/pandoc-1.15.2-1-amd64.deb # [linux64] | ||
md5: 8eedd750b0c6825ceb3f365f54c7e226 # [linux64] | ||
fn: pandoc-1.15.2.pkg # [osx] | ||
url: https://github.com/jgm/pandoc/releases/download/1.15.2/pandoc-1.15.2-osx.pkg # [osx] | ||
md5: a24f622d6f6472bd17a09f0c08ccbc48 # [osx] | ||
fn: pandoc-1.15.2-windows.msi # [win] | ||
url: https://github.com/jgm/pandoc/releases/download/1.15.2/pandoc-1.15.2-windows.msi # [win] | ||
md5: 451220f39f44994a41518e8327c79ed2 # [win] | ||
url: https://copr-be.cloud.fedoraproject.org/results/petersen/pandoc-el5/epel-5-i386/00125413-pandoc/pandoc-1.15.0.6-1.i386.rpm # [linux32] | ||
sha256: 4ed1d4a181366cf07f8a575cd7424f3f032daabd439c2e07c1da867ecf47d79e # [linux32] | ||
url: https://copr-be.cloud.fedoraproject.org/results/petersen/pandoc-el5/epel-5-x86_64/00125413-pandoc/pandoc-1.15.0.6-1.x86_64.rpm # [linux64] | ||
sha256: 51f95ed1583253a12a4baed0d173d251594377dfa9695dbb9e209ebefd2deb05 # [linux64] | ||
url: https://github.com/jgm/pandoc/releases/download/{{ version }}/pandoc-{{ version }}-osx.pkg # [osx] | ||
sha256: ebf8af76d94a87803d938e18d1b6f2da472e610a73f48838932a808ca2593239 # [osx] | ||
url: https://github.com/jgm/pandoc/releases/download/{{ version }}/pandoc-{{ version }}-windows.msi # [win] | ||
sha256: 63d26519adc2a86f71160058b8a03f2a4911064ef4b4ae3d3900c413e81beac0 # [win] | ||
|
||
requirements: | ||
build: | ||
- gmp 6.1.* # [linux] | ||
- libffi 3.2.* # [linux] | ||
- zlib 1.2.* # [osx] | ||
# Our libiconv is missing _locale_charset | ||
# - libiconv 1.14.* # [osx] | ||
run: | ||
- gmp # [linux64] | ||
- zlib # [linux64] | ||
- gmp 6.1.* # [linux] | ||
- libffi 3.2.* # [linux] | ||
- zlib 1.2.* # [osx] | ||
# - libiconv 1.14.* # [osx] | ||
|
||
test: | ||
commands: | ||
- pandoc --help | ||
- pandoc --version | ||
- pandoc-citeproc --help | ||
- pandoc-citeproc --version | ||
|
||
about: | ||
home: http://johnmacfarlane.net/pandoc/ | ||
license: GPL | ||
summary: Universal markup converter | ||
license: GPL-2.0 | ||
summary: 'Universal markup converter (repackaged binaries, includes pandoc-citeproc)' | ||
|
||
# extra: | ||
# recipe-maintainers: | ||
# - janschulz | ||
# - ocefpaf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
* The Linux package doesn't work on systems older than CentOS 6 | ||
* The Linux package hacks gmp and libffi NEEDED SONAMES and is old | ||
* The OS X package works on 10.7+ | ||
* The Windows package works on 32 and 64 bit archs |