girara 0.1.6
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Tue, 30 Jul 2013 18:15:42 +0000 (13:15 -0500)
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>
Tue, 30 Jul 2013 18:15:42 +0000 (13:15 -0500)
0.1.6-cygwin.patch [new file with mode: 0644]
girara.cygport [new file with mode: 0644]

diff --git a/0.1.6-cygwin.patch b/0.1.6-cygwin.patch
new file mode 100644 (file)
index 0000000..c8c5935
--- /dev/null
@@ -0,0 +1,47 @@
+--- origsrc/girara-0.1.6/Makefile      2013-05-12 16:09:14.000000000 -0500
++++ src/girara-0.1.6/Makefile  2013-07-30 12:53:48.335521400 -0500
+@@ -49,15 +49,15 @@ ${DOBJECTS}: config.mk version.h
+ ${PROJECT}: static shared
+ static: lib${PROJECT}.a
+-shared: lib${PROJECT}.so.${SOVERSION}
++shared: cyg${PROJECT}-${SOMAJOR}.dll
+ lib${PROJECT}.a: ${OBJECTS}
+       $(ECHO) AR rcs $@
+       $(QUIET)ar rcs $@ ${OBJECTS}
+-lib${PROJECT}.so.${SOVERSION}: ${OBJECTS}
++cyg${PROJECT}-${SOMAJOR}.dll: ${OBJECTS}
+       $(ECHO) LD $@
+-      $(QUIET)${CC} -Wl,-soname,lib${PROJECT}.so.${SOMAJOR} -shared ${LDFLAGS} -o $@ ${OBJECTS} ${LIBS}
++      $(QUIET)${CC} -Wl,--out-implib,lib${PROJECT}.dll.a -shared ${LDFLAGS} -o $@ ${OBJECTS} ${LIBS}
+ clean:
+       $(QUIET)rm -rf ${OBJECTS} ${PROJECT}-${VERSION}.tar.gz \
+@@ -128,12 +128,10 @@ install-static: static
+ install-shared: shared
+       $(ECHO) installing shared library
++      $(QUIET)mkdir -m 755 -p ${DESTDIR}${BINDIR}
+       $(QUIET)mkdir -m 755 -p ${DESTDIR}${LIBDIR}
+-      $(QUIET)install -m 644 lib${PROJECT}.so.${SOVERSION} ${DESTDIR}${LIBDIR}
+-      $(QUIET)ln -s lib${PROJECT}.so.${SOVERSION} ${DESTDIR}${LIBDIR}/lib${PROJECT}.so.${SOMAJOR} || \
+-              echo "Failed to create lib${PROJECT}.so.${SOMAJOR}. Please check if it exists and points to the correct version of lib${PROJECT}.so."
+-      $(QUIET)ln -s lib${PROJECT}.so.${SOVERSION} ${DESTDIR}${LIBDIR}/lib${PROJECT}.so || \
+-              echo "Failed to create lib${PROJECT}.so. Please check if it exists and points to the correct version of lib${PROJECT}.so."
++      $(QUIET)install -m 644 cyg${PROJECT}-${SOMAJOR}.dll ${DESTDIR}${BINDIR}
++      $(QUIET)install -m 644 lib${PROJECT}.dll.a ${DESTDIR}${LIBDIR}
+ install: options po install-static install-shared install-headers
+               $(QUIET)${MAKE} -C po install
+--- origsrc/girara-0.1.6/config.mk     2013-05-12 16:09:14.000000000 -0500
++++ src/girara-0.1.6/config.mk 2013-07-30 12:53:00.053759800 -0500
+@@ -17,6 +17,7 @@ SOVERSION = ${SOMAJOR}.${SOMINOR}
+ # paths
+ PREFIX ?= /usr
++BINDIR ?= ${PREFIX}/bin
+ LIBDIR ?= ${PREFIX}/lib
+ INCLUDEDIR ?= ${PREFIX}/include
+ # locale directory
diff --git a/girara.cygport b/girara.cygport
new file mode 100644 (file)
index 0000000..8b27364
--- /dev/null
@@ -0,0 +1,33 @@
+NAME="girara"
+VERSION=0.1.6
+RELEASE=1
+CATEGORY="Libs"
+SUMMARY="GTK+-based minimalistic user interface library"
+DESCRIPTION="girara is a library that implements a user interface that focuses
+on simplicity and minimalism.  girara was designed to replace and enhance the
+user interface that is used by zathura and jumanji and other features that
+those applications share."
+HOMEPAGE="http://pwmt.org/projects/girara/"
+SRC_URI="http://pwmt.org/projects/girara/download/${NAME}-${VERSION}.tar.gz"
+PATCH_URI="0.1.6-cygwin.patch"
+
+PKG_NAMES="libgirara-common libgirara-gtk2_1 libgirara-gtk2-devel"
+libgirara_common_CONTENTS="usr/share/doc/"
+libgirara_gtk2_1_REQUIRES="libgirara-common"
+libgirara_gtk2_1_CONTENTS="usr/bin/cyggirara-gtk2-1.dll usr/share/locale/*/*/libgirara-gtk2-1.mo"
+libgirara_gtk2_devel_CONTENTS="usr/include/ usr/lib/lib* usr/lib/pkgconfig/"
+
+src_compile() {
+       lndirs
+       cd ${B}
+       cygmake \
+               CC=${CC} CFLAGS="${CFLAGS} -std=c99 \$(INCS)" \
+               LDFLAGS="${LDFLAGS}" \
+               GIRARA_GTK_VERSION=2
+}
+
+src_install() {
+       cd ${B}
+       cygmake install-shared install-headers DESTDIR=${D} GIRARA_GTK_VERSION=2
+       cyginstall -C po GIRARA_GTK_VERSION=2
+}
This page took 0.021529 seconds and 5 git commands to generate.