-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from hadim/java9
Java 9
- Loading branch information
Showing
17 changed files
with
133 additions
and
103 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
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,5 +1,13 @@ | ||
build_number_decrement: | ||
- '0' | ||
channel_sources: | ||
- conda-forge,defaults | ||
channel_targets: | ||
- conda-forge main | ||
curl: | ||
- '7.59' | ||
docker_image: | ||
- condaforge/linux-anvil | ||
pin_run_as_build: | ||
curl: | ||
max_pin: x |
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
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,7 @@ | ||
channel_sources: | ||
- conda-forge,defaults | ||
channel_targets: | ||
- conda-forge main | ||
curl: | ||
- '7.59' | ||
pin_run_as_build: | ||
|
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
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,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
curl https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/master/recipe/ff_ci_pr_build.py | \ | ||
curl https://raw.githubusercontent.com/conda-forge/conda-forge-ci-setup-feedstock/branch2.0/recipe/conda_forge_ci_setup/ff_ci_pr_build.py | \ | ||
python - -v --ci "circle" "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" "${CIRCLE_BUILD_NUM}" "${CIRCLE_PR_NUMBER}" |
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
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
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
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
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,12 +1,19 @@ | ||
MOVE bin\* %LIBRARY_BIN% | ||
MOVE include\* %LIBRARY_INC% | ||
MOVE jre %LIBRARY_PREFIX%\jre | ||
MOVE lib\* %LIBRARY_LIB% | ||
MOVE src.zip %LIBRARY_PREFIX%\jre\src.zip | ||
|
||
:: ensure that JAVA_HOME is set correctly | ||
mkdir %PREFIX%\etc\conda\activate.d | ||
echo set "JAVA_HOME_CONDA_BACKUP=%%JAVA_HOME%%" > "%PREFIX%\etc\conda\activate.d\java_home.bat" | ||
echo set "JAVA_HOME=%%CONDA_PREFIX%%\Library" >> "%PREFIX%\etc\conda\activate.d\java_home.bat" | ||
mkdir %PREFIX%\etc\conda\deactivate.d | ||
echo set "JAVA_HOME=%%JAVA_HOME_CONDA_BACKUP%%" > "%PREFIX%\etc\conda\deactivate.d\java_home.bat" | ||
setlocal EnableDelayedExpansion | ||
|
||
XCOPY bin\* %LIBRARY_BIN% /s /i /y | ||
if errorlevel 1 exit 1 | ||
|
||
XCOPY include\* %LIBRARY_INC% /s /i /y | ||
if errorlevel 1 exit 1 | ||
|
||
XCOPY lib\* %LIBRARY_LIB% /s /i /y | ||
if errorlevel 1 exit 1 | ||
|
||
:: Copy the [de]activate scripts to %PREFIX%\etc\conda\[de]activate.d. | ||
:: This will allow them to be run on environment activation. | ||
FOR %%F IN (activate deactivate) DO ( | ||
if not exist %PREFIX%\etc\conda\%%F.d MKDIR %PREFIX%\etc\conda\%%F.d | ||
if errorlevel 1 exit 1 | ||
copy %RECIPE_DIR%\scripts\%%F.bat %PREFIX%\etc\conda\%%F.d\%PKG_NAME%_%%F.bat | ||
if errorlevel 1 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,39 +1,31 @@ | ||
#!/bin/bash -euo | ||
|
||
chmod +x bin/* | ||
chmod +x jre/bin/* | ||
mv bin/* $PREFIX/bin/ | ||
ls -la $PREFIX/bin | ||
|
||
mv include/* $PREFIX/include | ||
if [ -e jre/lib/jspawnhelper ]; then | ||
chmod +x jre/lib/jspawnhelper | ||
if [ -e ./lib/jspawnhelper ]; then | ||
chmod +x ./lib/jspawnhelper | ||
fi | ||
|
||
if [[ `uname` == "Linux" ]] | ||
then | ||
mv lib/amd64/jli/*.so lib | ||
mv lib/amd64/*.so lib | ||
rm -r lib/amd64 | ||
# libnio.so does not find this within jre/lib/amd64 subdirectory | ||
cp jre/lib/amd64/libnet.so lib | ||
mv lib/jli/*.so lib/ | ||
|
||
# include dejavu fonts to allow java to work even on minimal cloud images where these fonts are missing | ||
# (thanks to @chapmanb) | ||
mkdir -p jre/lib/fonts | ||
cd jre/lib/fonts | ||
curl -L -O -C - http://sourceforge.net/projects/dejavu/files/dejavu/2.36/dejavu-fonts-ttf-2.36.tar.bz2 | ||
tar -xjvpf dejavu-fonts-ttf-2.36.tar.bz2 | ||
mv dejavu-fonts-ttf-*/ttf/* . | ||
rm -rf dejavu-fonts-ttf-* | ||
cd ../../../ | ||
# Include dejavu fonts to allow java to work even on minimal cloud | ||
# images where these fonts are missing (thanks to @chapmanb) | ||
mkdir -p lib/fonts | ||
mv ./fonts/ttf/* ./lib/fonts/ | ||
rm -rf ./fonts | ||
fi | ||
|
||
mv jre $PREFIX/ | ||
mv lib/* $PREFIX/lib | ||
mv src.zip $PREFIX/jre/ | ||
|
||
# ensure that JAVA_HOME is set correctly | ||
mkdir -p $PREFIX/etc/conda/activate.d | ||
mkdir -p $PREFIX/etc/conda/deactivate.d | ||
cp $RECIPE_DIR/scripts/activate.sh $PREFIX/etc/conda/activate.d/java_home.sh | ||
cp $RECIPE_DIR/scripts/deactivate.sh $PREFIX/etc/conda/deactivate.d/java_home.sh | ||
# Copy the [de]activate scripts to $PREFIX/etc/conda/[de]activate.d. | ||
# This will allow them to be run on environment activation. | ||
for CHANGE in "activate" "deactivate" | ||
do | ||
mkdir -p "${PREFIX}/etc/conda/${CHANGE}.d" | ||
cp "${RECIPE_DIR}/scripts/${CHANGE}.sh" "${PREFIX}/etc/conda/${CHANGE}.d/${PKG_NAME}_${CHANGE}.sh" | ||
done |
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
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
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
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 +1,2 @@ | ||
set "JAVA_HOME=%JAVA_HOME_CONDA_BACKUP%" | ||
set "JAVA_HOME_CONDA_BACKUP=" |
Oops, something went wrong.
f16da87
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! This is the friendly automated conda-forge-webservice.
I updated the Github team because of this commit.
You should get push access to this feedstock and CI services.
Feel free to join the community chat room.
NOTE: Please make sure to not push to the repository directly.
Use branches in your fork for any changes and send a PR.
More details here