Skip to content

Commit

Permalink
Install icon and .desktop file during make install
Browse files Browse the repository at this point in the history
Makes packagers' lives easier, looks better and ensures Julia
will show up in software centers like GNOME Software.
  • Loading branch information
nalimilan committed Sep 20, 2014
1 parent af42324 commit b382a74
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,13 @@ endif
-rm -f $(DESTDIR)$(datarootdir)/julia/doc/juliadoc/.gitignore
# Copy in beautiful new man page!
$(INSTALL_F) $(build_datarootdir)/man/man1/julia.1 $(DESTDIR)$(datarootdir)/man/man1/
# Copy icon and .desktop file
mkdir -p $(DESTDIR)$(datarootdir)/icons/hicolor/scalable/apps/
$(INSTALL_F) contrib/julia.svg $(DESTDIR)$(datarootdir)/icons/hicolor/scalable/apps/
-touch --no-create $(DESTDIR)$(datarootdir)/icons/hicolor/
-gtk-update-icon-cache $(DESTDIR)$(datarootdir)/icons/hicolor/
mkdir -p $(DESTDIR)$(datarootdir)/applications/
$(INSTALL_F) contrib/julia.desktop $(DESTDIR)$(datarootdir)/applications/

# Update RPATH entries of Julia if $(private_libdir_rel) != $(build_private_libdir_rel)
ifneq ($(private_libdir_rel),$(build_private_libdir_rel))
Expand Down
8 changes: 8 additions & 0 deletions contrib/julia.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Name=Julia
Comment=High-level, high-performance dynamic language for technical computing
Exec=julia
Icon=julia
Terminal=true
Type=Application
Categories=Development;ComputerScience;Building;Science;Math;NumericalAnalysis;ParallelComputing;DataVisualization;ConsoleOnly;
62 changes: 62 additions & 0 deletions contrib/julia.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b382a74

Please sign in to comment.