mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Remove xsel from the build
https://github.com/fish-shell/fish-shell/issues/633
This commit is contained in:
parent
e4329f3ae7
commit
9762a8ca1e
6 changed files with 10 additions and 71 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -30,6 +30,5 @@ share/man/
|
||||||
toc.txt
|
toc.txt
|
||||||
user_doc/
|
user_doc/
|
||||||
xcuserdata
|
xcuserdata
|
||||||
xsel-1.2.0/
|
|
||||||
tests/*tmp.*
|
tests/*tmp.*
|
||||||
tests/foo.txt
|
tests/foo.txt
|
||||||
|
|
26
Makefile.in
26
Makefile.in
|
@ -202,7 +202,7 @@ MAIN_DIR_FILES_UNSORTED := Doxyfile Doxyfile.user Doxyfile.help \
|
||||||
key_reader.cpp $(MIME_OBJS:.o=.h) \
|
key_reader.cpp $(MIME_OBJS:.o=.h) \
|
||||||
$(MIME_OBJS:.o=.cpp) $(FISH_OBJS:.o=.h) $(BUILTIN_FILES) \
|
$(MIME_OBJS:.o=.cpp) $(FISH_OBJS:.o=.h) $(BUILTIN_FILES) \
|
||||||
$(COMMON_FILES) $(COMMON_FILES:.cpp=.h) $(FISH_OBJS:.o=.cpp) \
|
$(COMMON_FILES) $(COMMON_FILES:.cpp=.h) $(FISH_OBJS:.o=.cpp) \
|
||||||
fish.spec.in INSTALL README user_doc.head.html xsel-0.9.6.tar \
|
fish.spec.in INSTALL README user_doc.head.html \
|
||||||
ChangeLog config.sub config.guess fish_tests.cpp fish.cpp fish_pager.cpp \
|
ChangeLog config.sub config.guess fish_tests.cpp fish.cpp fish_pager.cpp \
|
||||||
fishd.cpp make_vcs_completions.fish $(FISH_INDENT_OBJS:.o=.cpp)
|
fishd.cpp make_vcs_completions.fish $(FISH_INDENT_OBJS:.o=.cpp)
|
||||||
|
|
||||||
|
@ -241,16 +241,14 @@ FUNCTIONS_DIR_FILES := $(wildcard share/functions/*.fish)
|
||||||
# Programs to install
|
# Programs to install
|
||||||
#
|
#
|
||||||
|
|
||||||
SIMPLE_PROGRAMS := fish mimedb fish_pager fishd fish_indent
|
PROGRAMS := fish mimedb fish_pager fishd fish_indent
|
||||||
PROGRAMS := $(SIMPLE_PROGRAMS) @XSEL_BIN@
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Manual pages to install
|
# Manual pages to install
|
||||||
#
|
#
|
||||||
|
|
||||||
MANUALS := $(addsuffix .1, $(addprefix share/man/man1/, \
|
MANUALS := $(addsuffix .1, $(addprefix share/man/man1/, \
|
||||||
$(SIMPLE_PROGRAMS))) @XSEL_MAN_PATH@
|
$(PROGRAMS)))
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -261,13 +259,6 @@ TRANSLATIONS_SRC := $(wildcard po/*.po)
|
||||||
TRANSLATIONS := $(TRANSLATIONS_SRC:.po=.gmo)
|
TRANSLATIONS := $(TRANSLATIONS_SRC:.po=.gmo)
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Extra util
|
|
||||||
#
|
|
||||||
|
|
||||||
XSEL := @XSEL@
|
|
||||||
XSEL_BIN := @XSEL_BIN@
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Make everything needed for installing fish
|
# Make everything needed for installing fish
|
||||||
#
|
#
|
||||||
|
@ -341,14 +332,6 @@ test: $(PROGRAMS) fish_tests
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Build the xsel program, which is maintained in its own tarball
|
|
||||||
#
|
|
||||||
|
|
||||||
$(XSEL_BIN):
|
|
||||||
$(MAKE) -C $(XSEL) || echo "Failed to build xsel - either add the required dependencies or use './configure --without-xsel' to disable it."
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# commands.hdr collects documentation on all commands, functions and
|
# commands.hdr collects documentation on all commands, functions and
|
||||||
# builtins
|
# builtins
|
||||||
|
@ -656,7 +639,6 @@ uninstall: uninstall-translations
|
||||||
-for i in $(PROGRAMS); do \
|
-for i in $(PROGRAMS); do \
|
||||||
rm -f $(DESTDIR)$(bindir)/$$i; \
|
rm -f $(DESTDIR)$(bindir)/$$i; \
|
||||||
done;
|
done;
|
||||||
-rm -f $(DESTDIR)$(bindir)/xsel
|
|
||||||
-rm -rf $(DESTDIR)$(sysconfdir)/fish
|
-rm -rf $(DESTDIR)$(sysconfdir)/fish
|
||||||
-if test -d $(DESTDIR)$(datadir)/fish; then \
|
-if test -d $(DESTDIR)$(datadir)/fish; then \
|
||||||
rm -r $(DESTDIR)$(datadir)/fish; \
|
rm -r $(DESTDIR)$(datadir)/fish; \
|
||||||
|
@ -838,7 +820,6 @@ rpm: fish-@PACKAGE_VERSION@.tar.bz2 fish.spec
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f fish.spec
|
rm -f fish.spec
|
||||||
rm -f config.status config.log config.h Makefile
|
rm -f config.status config.log config.h Makefile
|
||||||
rm -rf $(XSEL)
|
|
||||||
.PHONY: distclean
|
.PHONY: distclean
|
||||||
|
|
||||||
|
|
||||||
|
@ -866,7 +847,6 @@ clean:
|
||||||
fi
|
fi
|
||||||
rm -rf fish-@PACKAGE_VERSION@
|
rm -rf fish-@PACKAGE_VERSION@
|
||||||
rm -f $(TRANSLATIONS)
|
rm -f $(TRANSLATIONS)
|
||||||
test ! -d "$(XSEL)" || make -C $(XSEL) clean
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ fish can be built using autotools or Xcode.
|
||||||
### Autotools Build
|
### Autotools Build
|
||||||
|
|
||||||
autoconf
|
autoconf
|
||||||
./configure [--without-xsel]
|
./configure
|
||||||
make [gmake on BSD]
|
make [gmake on BSD]
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ export CFLAGS="$CFLAGS -isysroot $OSX_SDK -mmacosx-version-min=$MACOSX_DEPLOYMEN
|
||||||
export CXXFLAGS="$CXXFLAGS -isysroot $OSX_SDK -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
|
export CXXFLAGS="$CXXFLAGS -isysroot $OSX_SDK -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
|
||||||
export LDFLAGS="$LDFLAGS -isysroot $OSX_SDK -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
|
export LDFLAGS="$LDFLAGS -isysroot $OSX_SDK -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET"
|
||||||
autoconf
|
autoconf
|
||||||
./configure --without-xsel
|
./configure
|
||||||
|
|
||||||
# Actually build it now
|
# Actually build it now
|
||||||
if make -j 4 DESTDIR=/tmp/fish_pkg install
|
if make -j 4 DESTDIR=/tmp/fish_pkg install
|
||||||
|
|
38
configure.ac
38
configure.ac
|
@ -11,11 +11,6 @@
|
||||||
|
|
||||||
AC_INIT(fish,2.0.0,fish-users@lists.sf.net)
|
AC_INIT(fish,2.0.0,fish-users@lists.sf.net)
|
||||||
|
|
||||||
#
|
|
||||||
# preserve configure arguments for xsel. This breaks if arguments
|
|
||||||
# contain whitespace, so don't do that.
|
|
||||||
#
|
|
||||||
|
|
||||||
conf_arg=$@
|
conf_arg=$@
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -33,11 +28,6 @@ AC_SUBST(LIBS_MIMEDB)
|
||||||
AC_SUBST(localedir)
|
AC_SUBST(localedir)
|
||||||
AC_SUBST(optbindirs)
|
AC_SUBST(optbindirs)
|
||||||
AC_SUBST(prefix)
|
AC_SUBST(prefix)
|
||||||
AC_SUBST(XSEL)
|
|
||||||
AC_SUBST(XSEL_MAN)
|
|
||||||
AC_SUBST(XSEL_BIN)
|
|
||||||
AC_SUBST(XSEL_MAN_PATH)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -165,28 +155,6 @@ AC_PROG_CXX([g++ c++])
|
||||||
AC_PROG_CPP
|
AC_PROG_CPP
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
#
|
|
||||||
# Optionally drop xsel command
|
|
||||||
#
|
|
||||||
|
|
||||||
AC_ARG_WITH(
|
|
||||||
xsel,
|
|
||||||
AC_HELP_STRING(
|
|
||||||
[--without-xsel],
|
|
||||||
[do not build the xsel program needed for X clipboard integration.
|
|
||||||
If build xsel, it will be configured with the same options as fish.]
|
|
||||||
),
|
|
||||||
[xsel=$withval],
|
|
||||||
[xsel=with_xsel]
|
|
||||||
)
|
|
||||||
|
|
||||||
if [[ "$xsel" = "with_xsel" ]]; then
|
|
||||||
XSEL=xsel-1.2.0
|
|
||||||
XSEL_BIN=$XSEL/xsel
|
|
||||||
XSEL_MAN=xsel.1x
|
|
||||||
XSEL_MAN_PATH=$XSEL/xsel.1x
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Optionally drop gettext support
|
# Optionally drop gettext support
|
||||||
|
@ -917,12 +885,6 @@ if test ! x$local_found_posix_switch = xyes; then
|
||||||
echo "Some fish features may be disabled."
|
echo "Some fish features may be disabled."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$xsel" = "with_xsel" ]]; then
|
|
||||||
echo "Now configure xsel with $conf_arg"
|
|
||||||
rm -rf $XSEL
|
|
||||||
tar xf $XSEL.tar.gz
|
|
||||||
cd $XSEL && ./configure $conf_arg
|
|
||||||
fi
|
|
||||||
echo "fish is now configured."
|
echo "fish is now configured."
|
||||||
echo "Use 'make' and 'make install' to build and install fish."
|
echo "Use 'make' and 'make install' to build and install fish."
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,6 @@ fi
|
||||||
%_mandir/man1/fishd.1*
|
%_mandir/man1/fishd.1*
|
||||||
%_mandir/man1/mimedb.1*
|
%_mandir/man1/mimedb.1*
|
||||||
%_mandir/man1/set_color.1*
|
%_mandir/man1/set_color.1*
|
||||||
%_mandir/man1/xsel.1x*
|
|
||||||
|
|
||||||
# The program binaries
|
# The program binaries
|
||||||
%attr(0755,root,root) %_bindir/fish
|
%attr(0755,root,root) %_bindir/fish
|
||||||
|
@ -130,7 +129,6 @@ fi
|
||||||
%attr(0755,root,root) %_bindir/fishd
|
%attr(0755,root,root) %_bindir/fishd
|
||||||
%attr(0755,root,root) %_bindir/mimedb
|
%attr(0755,root,root) %_bindir/mimedb
|
||||||
%attr(0755,root,root) %_bindir/set_color
|
%attr(0755,root,root) %_bindir/set_color
|
||||||
%attr(0755,root,root) %_bindir/xsel
|
|
||||||
|
|
||||||
# Configuration files
|
# Configuration files
|
||||||
%config %_sysconfdir/fish/config.fish
|
%config %_sysconfdir/fish/config.fish
|
||||||
|
|
Loading…
Reference in a new issue