-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DEB/RPM/mac] master branch - debug all unix packages, switch to DEB/RPM #1112
Open
mathildemerle
wants to merge
4
commits into
medInria:master
Choose a base branch
from
mathildemerle:linuxPackage
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
e18d5a1
[DEB] debug .deb package for Ubuntu
mathildemerle 4738d1d
{Packaging deb/rpm} script for macOS & clean private-plugins var
mathildemerle ff83d04
[ITKeigen] packaging management for eigen
mathildemerle 3c6258f
[Packaging] newline
mathildemerle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -11,18 +11,13 @@ | |
# | ||
################################################################################ | ||
|
||
# Set common CPACK variables | ||
|
||
set(CPACK_PACKAGE_NAME medInria CACHE STRING "Name of the package for the superproject") | ||
mark_as_advanced(CPACK_PACKAGE_NAME) | ||
|
||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "${CPACK_PACKAGE_NAME} - medical image visualisation and processing tool") | ||
|
||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Medical image visualisation and processing tool") | ||
set(CPACK_PACKAGE_DESCRIPTION | ||
"${CPACK_PACKAGE_NAME} is a medical image visualization and processing tool developed at Inria by the teams Asclepios, Athena, Parietal and Visages.") | ||
|
||
"A tool developed at Inria by the teams Epione, Athena, Parietal and Visages.") | ||
set(CPACK_PACKAGE_VENDOR http://med.inria.fr/) | ||
set(CPACK_PACKAGE_CONTACT "medInria Team <[email protected]>") | ||
set(CPACK_PACKAGE_CONTACT "medInria team <[email protected]>") | ||
|
||
set(CPACK_PACKAGE_VERSION_MAJOR ${${PROJECT_NAME}_VERSION_MAJOR}) | ||
set(CPACK_PACKAGE_VERSION_MINOR ${${PROJECT_NAME}_VERSION_MINOR}) | ||
|
@@ -67,6 +62,5 @@ if (UNIX) | |
endif() | ||
|
||
# Include cpack modules | ||
|
||
include (InstallRequiredSystemLibraries) | ||
include (CPack) |
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,2 +1,2 @@ | ||
execute_process(COMMAND rm -f @PROJECT_BINARY_DIR@/medInria-@@PROJECT_NAME@[email protected]) | ||
execute_process(COMMAND @PROJECT_BINARY_DIR@/packaging/apple/mac_packager.sh @medInria_BINARY_DIR@/bin/plugins @medInria_BINARY_DIR@/bin/plugins_legacy @PRIVATE_PLUGINS_DIRS@ @PRIVATE_PLUGINS_LEGACY_DIRS@) | ||
execute_process(COMMAND @PROJECT_BINARY_DIR@/packaging/apple/mac_packager.sh @medInria_BINARY_DIR@/bin/plugins @medInria_BINARY_DIR@/bin/plugins_legacy) |
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 was deleted.
Oops, something went wrong.
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,34 +1,21 @@ | ||
set(DIR @CPACK_PACKAGE_DIRECTORY@/_CPack_Packages/Linux/@CPACK_GENERATOR@/@CPACK_PACKAGE_FILE_NAME@) | ||
set(DIR @CMAKE_BINARY_DIR@/_CPack_Packages/Linux/@CPACK_GENERATOR@/@CPACK_PACKAGE_FILE_NAME@/@CPACK_PACKAGING_INSTALL_PREFIX@) | ||
|
||
# Removing useless directories | ||
# Removing useless files and directories | ||
file(REMOVE_RECURSE ${DIR}/cmake) | ||
file(REMOVE_RECURSE ${DIR}/etc) | ||
file(REMOVE_RECURSE ${DIR}/include) | ||
file(REMOVE_RECURSE ${DIR}/share) | ||
|
||
# Cleaning up useless stuff in /lib | ||
file(REMOVE_RECURSE ${DIR}/plugins) | ||
file(REMOVE_RECURSE ${DIR}/wrp) | ||
file(REMOVE_RECURSE ${DIR}/lib/cmake) | ||
file(REMOVE_RECURSE ${DIR}/lib64/cmake) | ||
file(REMOVE_RECURSE ${DIR}/lib/vtk-8.0/CMake) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Verify vtk cleaning phase with new version of vtk. |
||
file(REMOVE_RECURSE ${DIR}/lib/vtk-8.0/doc) | ||
file(REMOVE_RECURSE ${DIR}/lib/vtk-8.0/doxygen) | ||
file(REMOVE_RECURSE ${DIR}/lib/vtk-8.0/testing) | ||
file(GLOB LIB_JUNK ${DIR}/lib/*.cmake ${DIR}/lib/vtk-8.0/*.cmake) | ||
|
||
if (LIB_JUNK) | ||
list(LENGTH LIB_JUNK LIB_JUNK_LENGTH) | ||
|
||
if (LIB_JUNK_LENGTH GREATER 0) | ||
file(REMOVE ${LIB_JUNK}) | ||
endif() | ||
endif() | ||
file(GLOB_RECURSE LIB_JUNK ${DIR}/lib/*.cmake ${DIR}/lib64/*.cmake) | ||
file(REMOVE ${LIB_JUNK}) | ||
|
||
# Cleaning up binaries in /bin | ||
file(GLOB BINARIES RELATIVE ${DIR}/bin/ ${DIR}/bin/*) | ||
|
||
foreach(bin ${BINARIES}) | ||
if(NOT bin MATCHES "^med") | ||
file(GLOB BIN_JUNK RELATIVE ${DIR}/bin/ ${DIR}/bin/*) | ||
foreach(bin ${BIN_JUNK}) | ||
if((NOT bin MATCHES "^med") AND (NOT bin MATCHES "^plugins")) | ||
file(REMOVE ${DIR}/bin/${bin}) | ||
endif() | ||
endforeach() | ||
|
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,11 +1,8 @@ | ||
[Desktop Entry] | ||
Version=@CPACK_PACKAGE_VERSION@ | ||
Type=Application | ||
Name=medInria | ||
GenericName=Medical Imaging Platform | ||
Comment=Process and Visualize Medical Images | ||
Icon=@CPACK_PACKAGING_INSTALL_PREFIX@/share/icons/medInria.png | ||
Exec=medInria %U | ||
Terminal=false | ||
Categories=Graphics;Science;MedicalSoftware;Qt;Viewer; | ||
MimeType=dcm;img;mha;nii;nii.gz;vtk;fib;roi; | ||
Version=@CPACK_PACKAGE_VERSION@ | ||
Exec=@CPACK_PACKAGING_INSTALL_PREFIX@/bin/medInria_launcher.sh | ||
Name=@CPACK_PACKAGE_NAME@ | ||
Comment=@CPACK_PACKAGE_DESCRIPTION_SUMMARY@ | ||
Icon=@CPACK_PACKAGING_INSTALL_PREFIX@/medInria.png |
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,23 +1,7 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Remove unwanted files. | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/cmake | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/include | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/share/qtdcm | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/plugins/designer | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/lib/*.cmake | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/lib/vtk-8.0/testing | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/lib/vtk-8.0/doxygen | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/lib/vtk-8.0/doc | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/lib/vtk-8.0/CMake | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/lib/vtk-8.0/*.cmake | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/lib/InsightToolkit/*.cmake | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/bin/vtk* | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/bin/ttk* | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/bin/itk* | ||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/bin/dtk* | ||
|
||
# Create Symbolic link | ||
ln -s @CPACK_PACKAGING_INSTALL_PREFIX@/share/applications/medInria.desktop /usr/share/applications/medInria.desktop | ||
ln -s @CPACK_PACKAGING_INSTALL_PREFIX@/medInria.desktop /usr/share/applications/medInria.desktop | ||
chmod +x /usr/share/applications/medInria.desktop | ||
ln -s @CPACK_PACKAGING_INSTALL_PREFIX@/bin/medInria_launcher.sh /usr/bin/medInria | ||
echo "The application is installed and set up." |
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,6 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
[ -h /usr/share/applications/medInria.desktop ] && rm -f /usr/share/applications/medInria.desktop | ||
[ -h /usr/bin/medInria ] && rm -f /usr/bin/medInria | ||
echo "Cleaning of the installation..." | ||
rm -f /usr/share/applications/medInria.desktop | ||
rm -f /usr/bin/medInria |
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,38 +1,13 @@ | ||
#!/bin/bash | ||
|
||
usage() { | ||
local ret="$1" | ||
echo "Usage: $0 [--prefix prefix_command] [--debug] [--help] parameters" | ||
exit ${ret} | ||
} | ||
|
||
# Set the library path | ||
@LOCATE@ | ||
|
||
if [ "$1" == "--help" ]; then | ||
usage 0 | ||
fi | ||
|
||
med_prefix="" | ||
if [ "$1" == "--prefix" ]; then | ||
shift | ||
med_prefix="$1" | ||
shift | ||
fi | ||
|
||
if [ "$1" == "--debug" ]; then | ||
med_prefix="gdb --args" | ||
fi | ||
|
||
# Locate the directory containing this script. | ||
|
||
MEDINRIA_DIR="@MEDINRIA_DIR@" | ||
MEDINRIA_BIN="@MEDINRIA_BIN@" | ||
export LD_LIBRARY_PATH=${MEDINRIA_DIR}/lib:${MEDINRIA_DIR}/lib64:$LD_LIBRARY_PATH | ||
|
||
# Set the plugins and library paths. | ||
# Needed for macOS to find plugins | ||
export MEDINRIA_PLUGINS_DIR="@MEDINRIA_PLUGINS_DIRS@" | ||
export MEDINRIA_PLUGINS_DIR_LEGACY="@MEDINRIA_PLUGINS_LEGACY_DIRS@" | ||
export LD_LIBRARY_PATH=${MEDINRIA_DIR}/lib:${MEDINRIA_DIR}/lib64:${MEDINRIA_DIR}/plugins_legacy:$LD_LIBRARY_PATH | ||
|
||
# Call medInria | ||
|
||
exec ${med_prefix} "${MEDINRIA_BIN}" $* | ||
# Call medInria | ||
exec "@MEDINRIA_BIN@" $* |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Keep private