Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 372 by ccpplus: ibus-table-1.1.0.20090306在Archlinux下makepkg生成 
的ibus-table.pc出错
http://code.google.com/p/ibus/issues/detail?id=372

是这样的,我从aur.archlinux.org上下了个ibus-table-git到PKGBUILD文件,由于我
不想使用git的ibus-table-git,于是自己修改了下那个文件,把git的代码改用成
ibus-table-1.1.0.20090306的,可是打包好后它的ibus-table.pc文件出了问题,导
致我又makepkg ibus-table-extraphrase出错,错误消息为Variable 'datarootdir'
not defined in '/usr/lib/pkgconfig/ibus-table.pc。

其中/usr/lib/pkgconfig/ibus-table.pc的内容为
prefix=/usr
exec_prefix=${prefix}
libdir=${datarootdir}
datarootdir=${prefix}/share
datadir=${datarootdir}

extradatadir=${datarootdir}/ibus-table/data
tabledir=${datarootdir}/ibus-table/tables
icondir=${datarootdir}/ibus-table/icons
enginedir=${datarootdir}/ibus/engine

ibus_table_version=1.1.0.20090306

Name: IBus-Table
Description: Table Based Input Method Framework for Intelligent Input Bus
for Linux / Unix OS
Version: 1.1.0.20090306
Requires:
Libs:
Cflags:

明显错误的地方是libdir=${datarootdir}时datarootdir没有定义

ibus-table-git如下 

# Contributor: riverscn<riverscn at gmail.com>
# Contributor: Lee.MaRS<leemars at gmail.com>
pkgname=ibus-table-git
pkgver=20090220
pkgrel=1
pkgdesc="The tables engine for IBus."
arch=('i686' 'x86_64')
url="http://code.google.com/p/ibus/";
license=('LGPL')
depends=('pyenchant' 'ibus=1.1.0' 'aspell-en')
provides=('ibus-table=1.1.0')
conflicts=('ibus-table')
makedepends=('git' 'cvs')
options=('!libtool')
source=()
md5sums=()

_gitroot="git://github.com/acevery/ibus-table.git"
_gitname="ibus-table"

build() {
   cd "$srcdir"
   msg "Connecting to GIT server...."

   if [ -d $_gitname ] ; then
     cd $_gitname && git pull origin master
     msg "The local files are updated."
   else
     git clone $_gitroot
   fi

   msg "GIT checkout done or server timeout"
   msg "Starting make..."

   rm -rf "$srcdir/$_gitname-build"
   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
   cd "$srcdir/$_gitname-build"

   #
   # BUILD HERE
   #
   ./autogen.sh --break-configure
   ./configure --prefix=/usr --libexecdir=/usr/lib/ibus \
               --disable-additional
   make || return 1
   make DESTDIR="$pkgdir/" install
}


我自己修改的PKGBUILD为

# Contributor: coderoar <[email protected]>

pkgname=ibus-table
pkgver=1.1.0.20090306
pkgrel=1
pkgdesc='iBus-table is the IM Engine framework for table-based input
methods, such as ZhengMa, WuBi, ErBi, ChangJie and so on'
arch=('i686' 'x86_64')
url="http://code.google.com/p/ibus/";
license=('LGPL')
depends=('pyenchant' 'ibus=1.1.0' 'aspell-en')
provides=('ibus-table=1.1.0')
conflicts=('ibus-table-git')
source=(http://ibus.googlecode.com/files/${pkgname}-${pkgver}.tar.gz)
md5sums=('56a520d37c4229766c12b30a3990fbe4')
build() {
        cd $srcdir/${pkgname}-${pkgver}
        ./configure  --prefix=/usr --libexecdir=/usr/lib/ibus    \
                --disable-additional
                
        make || return 1
        make DESTDIR="$pkgdir/" install
}


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

回复